| Home :: @root | classes |
class Color | ^ |
********************************************************************** Represents a color within an image.
The specific color that a color describes is some blend of three components of the color spectrum - red, green, and blue. All color values are reals on the range [-1, 1]; these values can be mapped to actual color values by the image application.
- Source:
- color.h:19
- Author:
- Robert C. Duvall
- Version:
- unknown
Contents | ^ |
Entity Type Scope Short Description ~Color destructor public automatically generated Color constructor public Create from grey color (i.e., all values the same) Color constructor public Create from given red, green, and blue values. Color constructor public Create from given hex string (i.e., internet value) in the format "#RRGGBB". Color constructor public Create from another color BLACK attribute public undocumented equals method public Compare color values getBlue method public Return blue component of color getGreen method public Return green component of color getRed method public Return red component of color MAX_VALUE attribute public undocumented MIN_VALUE attribute public undocumented operator *= operator public Multiply this color by another one operator += operator public Add another color to this one operator -= operator public Subtract another color from this one operator /= operator public Divide this color by another one operator = operator public automatically generated setBlue method public Set blue component of color setGreen method public Set green component of color setRed method public Set red component of color WHITE attribute public undocumented
destructor ~Color | ? ^ > |
automatically generated
- Source:
- color.h
- Code:
public ~ Color ( )
constructor Color | ? ^ < > |
Create from grey color (i.e., all values the same)
- Source:
- color.h:30
- Code:
public Color ( double grey = 0.0 )
constructor Color | ? ^ < > |
Create from given red, green, and blue values.
- Source:
- color.h:35
- Code:
public Color ( double red , double green , double blue )
constructor Color | ? ^ < > |
Create from given hex string (i.e., internet value) in the format "#RRGGBB".For complete details, see: http://falco.elte.hu/COMP/HTML/colors.html
- Source:
- color.h:42
- Code:
public Color ( const string & hexID )
constructor Color | ? ^ < > |
Create from another color
- Source:
- color.h:47
- Code:
public Color ( const Color & other )
attribute BLACK | ? ^ < > |
undocumented
- Source:
- color.h:21
- Code:
- public static const Color BLACK
method equals | ? ^ < > |
Compare color values
- Source:
- color.h:52
- Code:
public bool equals ( const Color & other ) const
method getBlue | ? ^ < > |
Return blue component of color
- Source:
- color.h:87
- Code:
public double getBlue ( ) const
method getGreen | ? ^ < > |
Return green component of color
- Source:
- color.h:82
- Code:
public double getGreen ( ) const
method getRed | ? ^ < > |
Return red component of color
- Source:
- color.h:77
- Code:
public double getRed ( ) const
attribute MAX_VALUE | ? ^ < > |
undocumented
- Source:
- color.h:23
- Code:
- public static const double MAX_VALUE
attribute MIN_VALUE | ? ^ < > |
undocumented
- Source:
- color.h:24
- Code:
- public static const double MIN_VALUE
operator *= | ? ^ < > |
Multiply this color by another one
- Source:
- color.h:67
- Code:
public Color & operator *= ( const Color & other )
operator += | ? ^ < > |
Add another color to this one
- Source:
- color.h:57
- Code:
public Color & operator += ( const Color & other )
operator -= | ? ^ < > |
Subtract another color from this one
- Source:
- color.h:62
- Code:
public Color & operator -= ( const Color & other )
operator /= | ? ^ < > |
Divide this color by another one
- Source:
- color.h:72
- Code:
public Color & operator /= ( const Color & other )
operator = | ? ^ < > |
automatically generated
- Source:
- color.h
- Code:
public Color & operator = ( const Color & )
method setBlue | ? ^ < > |
Set blue component of color
- Source:
- color.h:102
- Code:
public void setBlue ( double color )
method setGreen | ? ^ < > |
Set green component of color
- Source:
- color.h:97
- Code:
public void setGreen ( double color )
method setRed | ? ^ < > |
Set red component of color
- Source:
- color.h:92
- Code:
public void setRed ( double color )
attribute WHITE | ? ^ < > |
undocumented
- Source:
- color.h:22
- Code:
- public static const Color WHITE
Created Thu Oct 10 01:13:39 2002.
This documentation was generated automatically by
ccdoc v0.8 r26 2001/11/28 bin_opt_suncc_solaris-2.8.
Click here to submit a bug report or feature request.
Click here to return to the top of the page.