[Zope] Colorz product - beta 3 :-s - bugs fixed + new method

Max M maxmcorp@worldonline.dk
Fri, 29 Nov 2002 14:02:31 +0100


I have received a lot of feedback, interrest and positive comments on 
the Colorz product..

Thank you all.

But issues showed up so I have changed it a bit.

get it while it is still fresh at:
http://www.zope.org/Members/maxm/productList/colorz/colorz10b3.zip/view

regards max M


#############################3

Bugs fixed!


- I had hardwired colorz as an id into some of the dtml. This has been 
change. Thanks to Jerome Alet for the "patch"

- Whenever a grey color was used, what should have been levels of greys 
actually had red in it. This is due to the Python colorsys module. I can 
see that it can be confusing, so I have special-cased grey colors.



#############################3

New functionality

A new method is added 'getcolor()' wich can be called like::

     <dtml-var "colorz.getcolor(colorname='main', brightnes=50, 
saturation=20)">
     <dtml-var "colorz.getcolor('main', 50, 20)">
     <dtml-var "colorz.getcolor(brightnes=50)">
     ("main" is default)