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

Class: Image_Graph_Color_HSB

Source Location: /Graph/Color/HSB.php

Class Overview

Image_Graph_Common
   |
   --Image_Graph_Color
      |
      --Image_Graph_Color_HSB

HSB (Hue, Saturation and Brightness) Color representation used for advanced manipulation, such as setting alpha channel and/or calculating RGB values.


Methods


Inherited Methods

Class: Image_Graph_Color

Image_Graph_Color::Image_Graph_Color()
Allocate the color
Image_Graph_Color::blue()
Return the Blue of the RGB value
Image_Graph_Color::brightness()
Return the brightness of the color Brightness is the relative lightness or darkness of the color, usually measured as a percentage from 0% (black) to 100% (white).
Image_Graph_Color::green()
Return the Green of the RGB value
Image_Graph_Color::hue()
Return the hue of the color.
Image_Graph_Color::red()
Return the Red of the RGB value
Image_Graph_Color::saturation()
Return the saturation of the color Saturation, sometimes called chroma, is the strength or purity of the color. Saturation represents the amount of gray in proportion to the hue, measured as a percentage from 0% (gray) to 100% (fully saturated). On the standard color wheel, saturation increases from the center to the edge.
Image_Graph_Color::setAlpha()
Set the alpha (opacity) of the color

Class: Image_Graph_Common

Image_Graph_Common::Image_Graph_Common()
Creates an a instance of Image_Graph_Common.
Image_Graph_Common::add()
Adds an element to the objects element list, the new Image_Graph_elements parent is automatically set
Image_Graph_Common::addColor()
Add a color. Ultimately it should call addColor() from the Image_Graph object
Image_Graph_Common::newColor()
Create a new Image_Graph_color.
Image_Graph_Common::setName()
Sets the name

Class Details

[line 43]
HSB (Hue, Saturation and Brightness) Color representation used for advanced manipulation, such as setting alpha channel and/or calculating RGB values.



[ Top ]


Class Methods


constructor Image_Graph_Color_HSB [line 51]

Image_Graph_Color_HSB &Image_Graph_Color_HSB( int $hue, int $saturation, int $brightness)

Allocate the color



Parameters:

int   $hue   Hue The hue of the HSB color
int   $saturation   Saturation The saturation of the HSB color
int   $brightness   Brightness The brightness of the HSB color

[ Top ]


Documentation generated on Fri, 12 Nov 2004 08:25:26 +0100 by phpDocumentor 1.3.0RC3