dojox/charting/themes/gradientGenerator (version 1.10)

Property Summary

Method Summary

  • generateFills(colors,fillPattern,lumFrom,lumTo) generates 2-color gradients using pure colors, a fill pattern, and two luminance values
  • generateGradientByIntensity(color,intensityMap) generates gradient colors using an intensity map
  • generateMiniTheme(colors,fillPattern,lumFrom,lumTo,lumStroke) generates mini-themes with 2-color gradients using colors, a fill pattern, and three luminance values
  • updateFills(themes,fillPattern,lumFrom,lumTo) transforms solid color fills into 2-color gradients using a fill pattern, and two luminance values

Properties

Adobebricks
Algae
Bahamation
BlueDusk
Charged
Chris
Claro
CubanShirts
Desert
Distinctive
Dollar
Electric
Grasshopper
Grasslands
GreySkies
Harmony
IndigoNation
Ireland
Julie
MiamiNice
Midwest
Minty
PrimaryColors
PurpleRain
Renkoo
RoyalPurples
SageToLime
Shrooms
Tom
Tufte
WatersEdge
Wetland

Methods

generateFills(colors,fillPattern,lumFrom,lumTo)

generates 2-color gradients using pure colors, a fill pattern, and two luminance values

Parameter Type Description
colors Array

Array of colors to generate gradients for each.

fillPattern Object

Gradient fill descriptor which colors list will be generated.

lumFrom Number

Initial luminance value (0-100).

lumTo Number

Final luminance value (0-100).

generateGradientByIntensity(color,intensityMap)

generates gradient colors using an intensity map

Parameter Type Description
color dojo/_base/Color

Color to use to generate gradients.

intensityMap Array

Array of tuples {o, i}, where o is a gradient offset (0-1), and i is an intensity (0-255).

generateMiniTheme(colors,fillPattern,lumFrom,lumTo,lumStroke)

generates mini-themes with 2-color gradients using colors, a fill pattern, and three luminance values

Parameter Type Description
colors Array

Array of colors to generate gradients for each.

fillPattern Object

Gradient fill descriptor which colors list will be generated.

lumFrom Number

Initial luminance value (0-100).

lumTo Number

Final luminance value (0-100).

lumStroke Number

Stroke luminance value (0-100).

updateFills(themes,fillPattern,lumFrom,lumTo)

transforms solid color fills into 2-color gradients using a fill pattern, and two luminance values

Parameter Type Description
themes Array

Array of mini-themes (usually series themes or marker themes), which fill will be transformed.

fillPattern Object

Gradient fill descriptor which colors list will be generated.

lumFrom Number

Initial luminance value (0-100).

lumTo Number

Final luminance value (0-100).

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