Class DHTMLSuite.colorHelp

Object
   |
   +--DHTMLSuite.colorHelp

class DHTMLSuite.colorHelp


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.colorHelp ()
           
 
Method Summary
 String baseConverter(numberToConvert,oldBase,newBase)
           converts numbers from different number systems(DHTMLSuite.colorHelp.prototype.example = Decimal;to octal)
 String findColorByBrightness(rgbColor,brightness)
           Returns a new rgb color after change of brightness
 String findColorByDegrees(rgbColor,degrees)
           Returns RGB color from a position on the color wheel
 String getAllNamedColors()
           This method returns an array of all web colors
 String getAllWebColors()
           This method returns an array of all web colors
 Array getHsvByRgbCode(rgbColor)
           Converts a RGB color to HSV
 String getRgbCodeByHsv(hue,saturation,valueBrightness)
           Converts a RGB color to HSV
 String getRgbCodeFromRgbColors(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
 String getRgbFromNumbers(red,green,blue)
           Returns a color in RGB format(e.g.: #FFEECC from numeric values of red, green and blue)

Constructor Detail

DHTMLSuite.colorHelp

DHTMLSuite.colorHelp()

Method Detail

baseConverter

String baseConverter(numberToConvert,oldBase,newBase)

findColorByBrightness

String findColorByBrightness(rgbColor,brightness)

findColorByDegrees

String findColorByDegrees(rgbColor,degrees)

getAllNamedColors

String getAllNamedColors()

getAllWebColors

String getAllWebColors()

getHsvByRgbCode

Array getHsvByRgbCode(rgbColor)

getRgbCodeByHsv

String getRgbCodeByHsv(hue,saturation,valueBrightness)

getRgbCodeFromRgbColors

String getRgbCodeFromRgbColors(red,green,blue)

getRgbColorsByHsv

String getRgbColorsByHsv(hue,saturation,valueBrightness)

getRgbFromNumbers

String getRgbFromNumbers(red,green,blue)


Documentation generated by JSDoc on Sun Feb 11 15:17:12 2007