dojox/color/Palette.generators (version 1.10)

See the dojox/color/Palette.generators reference documentation for more information.

Method Summary

  • analogous(args) Create a 5 color palette based on the analogous rules as implemented at http://kuler.adobe.com.
  • complementary(args) Create a 5 color palette based on the complementary rules as implemented at http://kuler.adobe.com.
  • compound(args) Create a 5 color palette based on the compound rules as implemented at http://kuler.adobe.com.
  • monochromatic(args) Create a 5 color palette based on the monochromatic rules as implemented at http://kuler.adobe.com.
  • shades(args) Create a 5 color palette based on the shades rules as implemented at http://kuler.adobe.com.
  • splitComplementary(args) Create a 5 color palette based on the split complementary rules as implemented at http://kuler.adobe.com.
  • triadic(args) Create a 5 color palette based on the triadic rules as implemented at http://kuler.adobe.com.

Methods

analogous(args)
Defined by dojox/color/Palette

Create a 5 color palette based on the analogous rules as implemented at http://kuler.adobe.com.

Parameter Type Description
args Object

An object with the following properties:

  • base (dojo/_base/Color):

    The base color to be used to generate the palette.

  • high (Number, optional):

    The difference between the hue of the base color and the highest hue. In degrees, default is 60.

  • low (Number, optional):

    The difference between the hue of the base color and the lowest hue. In degrees, default is 18.

Returns:instance
complementary(args)
Defined by dojox/color/Palette

Create a 5 color palette based on the complementary rules as implemented at http://kuler.adobe.com.

Parameter Type Description
args Object

An object with the following properties:

  • base (dojo/_base/Color):

    The base color to be used to generate the palette.

Returns:instance
compound(args)
Defined by dojox/color/Palette

Create a 5 color palette based on the compound rules as implemented at http://kuler.adobe.com.

Parameter Type Description
args Object

An object with the following properties:

  • base (dojo/_base/Color):

    The base color to be used to generate the palette.

Returns:instance
monochromatic(args)
Defined by dojox/color/Palette

Create a 5 color palette based on the monochromatic rules as implemented at http://kuler.adobe.com.

Parameter Type Description
args Object

An object with the following properties:

  • base (dojo/_base/Color):

    The base color to be used to generate the palette.

Returns:instance
shades(args)
Defined by dojox/color/Palette

Create a 5 color palette based on the shades rules as implemented at http://kuler.adobe.com.

Parameter Type Description
args Object

An object with the following properties:

  • base (dojo/_base/Color):

    The base color to be used to generate the palette.

Returns:instance
splitComplementary(args)
Defined by dojox/color/Palette

Create a 5 color palette based on the split complementary rules as implemented at http://kuler.adobe.com.

Parameter Type Description
args Object

An object with the following properties:

  • base (dojo/_base/Color):

    The base color to be used to generate the palette.

  • da (Number, optional):

    The delta angle to be used to determine where the split for the complementary rules happen. In degrees, the default is 30.

Returns:instance
triadic(args)
Defined by dojox/color/Palette

Create a 5 color palette based on the triadic rules as implemented at http://kuler.adobe.com.

Parameter Type Description
args Object

An object with the following properties:

  • base (dojo/_base/Color):

    The base color to be used to generate the palette.

Returns:instance
Error in the documentation? Can’t find what you are looking for? Let us know!