Class ColorSC

Description

The ColorSC represents CSS color values. For efficiency reasons, constant

color name values, i.e. "Blue", are not supported because there are just too many of them (nearly 200). The allowed formats are: <ul style="font-family: monospace;"> <li> #RGB - "#A48" (R,G,B are 0-F hexadecimal digits)</li> <li> #RRGGBB - "#AA4488" (R,G,B are 0-F hexadecimal digits)</li> <li> rgb(R,G,B) - "rgb(100, 20, 230)" (R,G,B are 0-255 decimals)</li> <li> rgb(R%,G%,B%) - "rgb(0%, 20.25%, 100%)" (R%,G%,B% are floating-point 0-100 percentages)</li> </ul>

The

  1. StyleComponent
(SC) is the most basic of the three building pieces of CSS styles. It combines a CSS property value with a ValidatorRule to ensure that the value follows a certain format.

  • version: $Id: ColorSC.class.php,v 1.11 2007/09/04 20:25:22 adamfranco Exp $
  • license: GNU General Public License (GPL)
  • copyright: Copyright &copy; 2005, Middlebury College

Located in /harmoni/core/GUIManager/StyleComponents/ColorSC.class.php (line 27)

StyleComponentInterface
   |
   --StyleComponent
      |
      --ColorSC
Method Summary
ColorSC ColorSC (string $value)
void getRGBArray ([mixed $val = null])
Variables
Methods

Documentation generated on Wed, 19 Sep 2007 10:22:05 -0400 by phpDocumentor 1.3.0RC3