blob: 33b3ad8a3b83342fa558520b36f3c80b0db53532 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# -*- python -*-
# This example uses free function modifier and temporary curve
# manipulation to make the colour curves logarithmic.
import math
# Use linear RGB.
linearise()
# Make the curves logarithmic. The function applies
# to all colour curves, but you can change them
# individually by specifing three functions: red,
# green and blue.
manipulate(lambda x : math.log(x + 1, 2))
# Switch back to sRGB.
standardise()
# Apply settings, using vidmode.
vidmode()
#randr()
|