Merge branch 'gradient-lookup'
commit67fba02df9f7637ecab333f789815716c6c4efae
authorMichael J Gruber <conformal@drmicha.warpmail.net>
Mon, 9 Jul 2012 16:53:35 +0000 (9 18:53 +0200)
committerMichael J Gruber <conformal@drmicha.warpmail.net>
Mon, 9 Jul 2012 16:53:35 +0000 (9 18:53 +0200)
tree92c6a6d3b28c35972ce1c499589cd282764073c7
parent6f570df5d89f1a01e81109ac6152655066cb94f8
parentbeeecaddf700ba1761405fdc2ba52caaf0e45c76
Merge branch 'gradient-lookup'

This shoves off 6s of 6s seconds from the gradient lookup phase.
It means quantising the range of values, but in RGB land 4096 or so
values should be safe even for multicolor gradients. Otherwise just
adjust QUANT.

We're down to 16.5 seconds from 30.5 now for the standard example:

\# conformal 0.3+
code = """
w=(z-0.5)/(1-0.5*z)
"""
constraint = """
p=(abs(z)<1)
"""
xl = -1.000000
xr = 1.000000
yt = 1.000000
yb = -1.000000
grid = 1.000000
checkboard = 0
gradient = "Full saturation spectrum CCW"
width = 1024
height = 1024
conformal.py