Base class for colors and textures.
[line 74]
[line 67]
[line 60]
Image_3D_Color __construct( [mixed $red = 0.], [mixed $green = 0.], [mixed $blue = 0.], [mixed $alpha = 0.])
All colors accept values in integer (0 - 255) or float (0 - 1)
void addLight( Image_3D_Color $color, [mixed $intensity = .5])
Add an light which influence the object this color is created for
void calculateColor( )
Calculate color depending on the lights
array getValues( mixed $alpha)
Return an array with rgba-values
void mixAlpha( [mixed $alpha = 1.])
Apply alpha value to color. It may be int or float. 255 / 1. means full oppacity
void _calcLights( )
Calculate light depending an all lights which influence this object
void _mixColor( )
Recalculate color depending on the lights
Overridden in child classes as:
string __toString( )
Return a string representation of the color