Difference between revisions of "ColorGranule Code"

From DocDataFlow
Jump to: navigation, search
Line 1: Line 1:
 
The ColorGranule class is derived from the [[Granule|''Granule'']] class.
 
The ColorGranule class is derived from the [[Granule|''Granule'']] class.
  
It has a [[Class identifier|''class identifier'']] of "com.rorohiko.granule.color".
+
It has a [[Class identifier|''class identifier'']] of <code>com.rorohiko.granule.color</code>.
  
 
The following methods are provided:
 
The following methods are provided:
  
* colorGranule.getCSS(): fetch the CSS color hex values for this color. The colorGranule needs to take care of the 'whatever-to-RGB' conversion: some document formats support a whole range of color models or support tints. colorGranule.getCSS() provides an RGB 'best effort' value that converts to RGB, and applies any tint value if necessary.
+
* <code>colorGranule.getCSS()</code>: fetch the CSS color hex values for this color. The colorGranule needs to take care of the 'whatever-to-RGB' conversion: some document formats support a whole range of color models or support tints. colorGranule.getCSS() provides an RGB 'best effort' value that converts to RGB, and applies any tint value if necessary.

Revision as of 01:44, 30 December 2013

The ColorGranule class is derived from the Granule class.

It has a class identifier of com.rorohiko.granule.color.

The following methods are provided:

  • colorGranule.getCSS(): fetch the CSS color hex values for this color. The colorGranule needs to take care of the 'whatever-to-RGB' conversion: some document formats support a whole range of color models or support tints. colorGranule.getCSS() provides an RGB 'best effort' value that converts to RGB, and applies any tint value if necessary.