Function
An object that represents a palette of colors.
A Palette is a representation of a set of colors. While the standard number of colors contained in a palette is 5, it can really handle any number of colors. A palette is useful for the ability to transform all the colors in it using a simple object-based approach. In addition, you can generate palettes using dojox.color.Palette.generate; these generated palettes are based on the palette generators at http://kuler.adobe.com.
dojox.color.Color[
The actual color references in this palette.
Function
Specify the color model to use for the transformation. Can be "rgb", "rgba", "hsv", "hsl", "cmy", "cmyk".
The delta to be applied to the red aspect of the RGB/RGBA color model.
The delta to be applied to the green aspect of the RGB/RGBA color model.
The delta to be applied to the blue aspect of the RGB/RGBA color model.
The delta to be applied to the alpha aspect of the RGBA color model.
The delta to be applied to the cyan aspect of the CMY/CMYK color model.
The delta to be applied to the magenta aspect of the CMY/CMYK color model.
The delta to be applied to the yellow aspect of the CMY/CMYK color model.
The delta to be applied to the black aspect of the CMYK color model.
The delta to be applied to the hue aspect of the HSL/HSV color model.
The delta to be applied to the saturation aspect of the HSL/HSV color model.
The delta to be applied to the value aspect of the HSV color model.
The delta to be applied to the luminosity aspect of the HSL color model.
The keywords argument to be passed to the dojox.color.Palette.transform function. Note that while all arguments are optional, *some* arguments must be passed. The basic concept is that you pass a delta value for a specific aspect of a color model (or multiple aspects of the same color model); for instance, if you wish to transform a palette based on the HSV color model, you would pass one of "dh", "ds", or "dv" as a value.
String?
Specify the color model to use for the transformation. Can be "rgb", "rgba", "hsv", "hsl", "cmy", "cmyk".
Number?
The delta to be applied to the red aspect of the RGB/RGBA color model.
Number?
The delta to be applied to the green aspect of the RGB/RGBA color model.
Number?
The delta to be applied to the blue aspect of the RGB/RGBA color model.
Number?
The delta to be applied to the alpha aspect of the RGBA color model.
Number?
The delta to be applied to the cyan aspect of the CMY/CMYK color model.
Number?
The delta to be applied to the magenta aspect of the CMY/CMYK color model.
Number?
The delta to be applied to the yellow aspect of the CMY/CMYK color model.
Number?
The delta to be applied to the black aspect of the CMYK color model.
Number?
The delta to be applied to the hue aspect of the HSL/HSV color model.
Number?
The delta to be applied to the saturation aspect of the HSL/HSV color model.
Number?
The delta to be applied to the luminosity aspect of the HSL color model.
Number?
The delta to be applied to the value aspect of the HSV color model.
Function
The base color to be used to generate the palette.
The keyword arguments object used to create a palette based on a base color.
dojo.Color
The base color to be used to generate the palette.
Function
The base color to be used to generate the palette.
The difference between the hue of the base color and the highest hue. In degrees, default is 60.
The difference between the hue of the base color and the lowest hue. In degrees, default is 18.
The keyword arguments object that is used to create a 5 color palette based on the analogous rules as implemented at http://kuler.adobe.com, using the HSV color model.
dojo.Color
The base color to be used to generate the palette.
Number?
The difference between the hue of the base color and the highest hue. In degrees, default is 60.
Number?
The difference between the hue of the base color and the lowest hue. In degrees, default is 18.
Function
The base color to be used to generate the palette.
The delta angle to be used to determine where the split for the complementary rules happen. In degrees, the default is 30.
The keyword arguments object used to create a palette based on the split complementary rules as implemented at http://kuler.adobe.com.
dojo.Color
The base color to be used to generate the palette.
Number?
The delta angle to be used to determine where the split for the complementary rules happen. In degrees, the default is 30.
Function
Transform the palette using a specific transformation function and a set of transformation parameters.
{palette}.transform is a simple way to uniformly transform all of the colors in a palette using any of 5 formulae: RGBA, HSL, HSV, CMYK or CMY. Once the forumula to be used is determined, you can pass any number of parameters based on the formula "d"[param]; for instance, { use: "rgba", dr: 20, dg: -50 } will take all of the colors in palette, add 20 to the R value and subtract 50 from the G value. Unlike other types of transformations, transform does *not* alter the original palette but will instead return a new one.
dojox.color.Palette
Function
Clones the current palette.
dojox.color.Palette
Object
Function
Create a 5 color palette based on the monochromatic rules as implemented at http://kuler.adobe.com.
Function
Create a 5 color palette based on the triadic rules as implemented at http://kuler.adobe.com.
Function
Create a 5 color palette based on the complementary rules as implemented at http://kuler.adobe.com.
Function
Create a 5 color palette based on the split complementary rules as implemented at http://kuler.adobe.com.
Function
Create a 5 color palette based on the compound rules as implemented at http://kuler.adobe.com.
Function
Create a 5 color palette based on the shades rules as implemented at http://kuler.adobe.com.
Function
Generate a new Palette using any of the named functions in dojox.color.Palette.generators or an optional function definition. Current generators include "analogous", "monochromatic", "triadic", "complementary", "splitComplementary", and "shades".
dojox.color.Palette
Object
Object