Base class for colors and textures.
[line 75]
[line 68]
[line 82]
[line 61]
Image_3D_Color __construct( [mixed $red = 0.], [mixed $green = 0.], [mixed $blue = 0.], [mixed $alpha = 0.], [ $reflection = null])
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
float getReflection( )
array getValues( )
Return an array with rgba-values
void merge( $colors)
Merge color with other colors
void mixAlpha( [mixed $alpha = 1.])
Apply alpha value to color. It may be int or float. 255 / 1. means full oppacity
void setReflection( float $reflection)
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