Author: JonNeal Date: 2008-02-17 03:54:14 -0500 (Sun, 17 Feb 2008) New Revision: 919
Modified: trunk/pysoy/src/colors/Color.pxi Log: Colors pydoc with examples added Modified: trunk/pysoy/src/colors/Color.pxi =================================================================== --- trunk/pysoy/src/colors/Color.pxi 2008-02-17 08:40:43 UTC (rev 918) +++ trunk/pysoy/src/colors/Color.pxi 2008-02-17 08:54:14 UTC (rev 919) @@ -20,7 +20,13 @@ cdef class Color : '''PySoy Color - This is the base Color class. + This is the base Color class. + Accepts many formats of colors. + Hex with and without alpha, tuples of 1, 2, 3, or 4 floats + ranging from 0-255 or 0.0-1.0. + examples: + #00FFAABB, #000000, #000, #FFFF, (1.0), (1.0, .75, .65, 1.0), + (178, 211, 83, 255), (255, 34) ''' def __cinit__(self, value) : if type(value) == str or type(value) == unicode : _______________________________________________ PySoy-SVN mailing list PySoy-SVN@pysoy.org http://www.pysoy.org/mailman/listinfo/pysoy-svn