summaryrefslogblamecommitdiffstats
path: root/examples/logarithmic
blob: 8dc137e78480c6383fa57abe8665461d4d69e758 (plain) (tree)
1
2
3
4
                
                                                            


















                                                   
# -*- python -*-

# This example uses free function modifier and temporary
# curve linearisation 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()