Image_3D
[ class tree: Image_3D ] [ index: Image_3D ] [ all elements ]

Class: Image_3D_Color

Source Location: /Image_3D-0.4.0/Image/3D/Color.php

Class Overview


Image_3D_Color


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 1997-2005 Kore Nordmann

Methods


Child classes:

Image_3D_Color_Metal
Image_3D_Color_Metal

Inherited Variables

Inherited Methods


Class Details

[line 51]
Image_3D_Color

Base class for colors and textures.



[ Top ]


Method Detail

addLight   [line 163]

void addLight( mixed Image_3D_Color$color, [mixed $intensity = .5], Image_3D_Color $color)

Add light

Add an light which influence the object this color is created for


Parameters:

Image_3D_Color   $color     Lightcolor
mixed   $intensity     Intensity

[ Top ]

calculateColor   [line 213]

void calculateColor( )

Calculate new color

Calculate color depending on the lights


[ Top ]

getValues   [line 147]

array getValues( mixed $alpha)

return RGBA values

Return an array with rgba-values

  1. => (float) red
  2. => (float) green
  3. => (float) blue
  4. => (float) alpha

  • Return: RGBA-Values

Parameters:

mixed   $alpha     Aplhavalue

[ Top ]

mixAlpha   [line 124]

void mixAlpha( [mixed $alpha = 1.])

Apply alphavalue to color

Apply alpha value to color. It may be int or float. 255 / 1. means full oppacity


Parameters:

mixed   $alpha     Alphavalue

[ Top ]


Documentation generated on Sun, 19 Mar 2006 17:00:27 -0500 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.