ColorGranule Code

From DocDataFlow
Revision as of 01:30, 30 December 2013 by Kris (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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. colorGranule.getCSS() provides an RGB 'best effort' value.