Class DHTMLSuite.colorUtil

Object
   |
   +--DHTMLSuite.colorUtil

class DHTMLSuite.colorUtil


This class provides some methods for working with colors.
Defined in dhtml-suite-for-applications.js

Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0


Constructor Summary
DHTMLSuite.colorUtil ()
           
 
Method Summary
 String baseConverter(numberToConvert,oldBase,newBase)
           converts numbers from different number systems(DHTMLSuite.colorUtil.prototype.example = Decimal;to octal)
 String findColorByBrightness(rgbColor,brightness)
           Returns a new rgb color after change of brightness
 Array getAllNamedColors()
           This method returns an array of all web colors
 String getAllWebColors()
           This method returns an array of all web colors
 String getAnalogicColors(rgbCode,degrees)
           Return getAnalogicColors colors of an rgb code.
 String getColorByDegrees(rgbColor,degrees)
           Returns RGB color from a position on the color wheel
 String getContrastColorByRgb(rgbCode)
           Return the rgb code of a complementary color
 Array getHsvByRgbCode(rgbColor)
           Converts a RGB color to HSV
 String getRgbCodeByHsv(hue,saturation,valueBrightness)
           Converts a RGB color to HSV
 String getRgbCodeByRgbColors(red,green,blue)
           Return an rgb code from numeric red,green and blue
 String getRgbColorsByHsv(hue,saturation,valueBrightness)
           Return an array of red,green and blue from hue,saturation and brightness
 Array getRgbColorsByRgbCode(rgbCode)
           Return an rgb code from numeric red,green and blue
 String getRgbFromNumbers(red,green,blue)
           Returns a color in RGB format(e.g.: #FFEECC from numeric values of red, green and blue)
 String getTetradeColorsByRgb(rgbCode)
           Return tetrade colors of an rgb code.
 String getTriadeColorsByRgb(rgbCode)
           Return triade colors of an rgb code.

Constructor Detail

DHTMLSuite.colorUtil

DHTMLSuite.colorUtil()

Method Detail

baseConverter

String baseConverter(numberToConvert,oldBase,newBase)

findColorByBrightness

String findColorByBrightness(rgbColor,brightness)

getAllNamedColors

Array getAllNamedColors()

getAllWebColors

String getAllWebColors()

getAnalogicColors

String getAnalogicColors(rgbCode,degrees)

getColorByDegrees

String getColorByDegrees(rgbColor,degrees)

getContrastColorByRgb

String getContrastColorByRgb(rgbCode)

getHsvByRgbCode

Array getHsvByRgbCode(rgbColor)

getRgbCodeByHsv

String getRgbCodeByHsv(hue,saturation,valueBrightness)

getRgbCodeByRgbColors

String getRgbCodeByRgbColors(red,green,blue)

getRgbColorsByHsv

String getRgbColorsByHsv(hue,saturation,valueBrightness)

getRgbColorsByRgbCode

Array getRgbColorsByRgbCode(rgbCode)

getRgbFromNumbers

String getRgbFromNumbers(red,green,blue)

getTetradeColorsByRgb

String getTetradeColorsByRgb(rgbCode)

getTriadeColorsByRgb

String getTriadeColorsByRgb(rgbCode)


Documentation generated by JSDoc on Mon Oct 8 10:17:27 2007