joliclic

home

Class Index | File Index

Classes


Namespace kh.schemer


Defined in: kh-schemer.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
kh.schemer.ensureHue(aH)
return an angle in [0, 360]
<static>  
kh.schemer.getComplement(aRGB)
get the complement color (opposite hue)
<static>  
kh.schemer.getGradients(aRGB1, aRGB2, aN)
get an array of colors between 2 colors.
<static>  
kh.schemer.getMonochromatic(aRGB, aN, aReturnRef, aK)
get a array of associated monochromatic color (same h, s, different l).
<static>  
kh.schemer.getNegative(aRGB)
get the negative color (opposite r, g, and b)
<static>  
kh.schemer.getShades(aRGB, aN)
get a array of equally espaced shade variations of a color, i.e.
<static>  
kh.schemer.getTetrads(aRGB, aAlpha)
get tetradic colors (complement of a color + a color with espaced of alpha and its complement).
<static>  
kh.schemer.getTints(aRGB, aN)
get a array of equally espaced tint variations of a color, i.e.
<static>  
kh.schemer.getTones(aRGB, aN)
get a array of equally espaced tone variations of a color, i.e.
<static>  
kh.schemer.getTriads(aRGB, aAlpha)
get triads color.
Namespace Detail
kh.schemer
Method Detail
<static> {Number} kh.schemer.ensureHue(aH)
return an angle in [0, 360]
Parameters:
{Number} aH
Returns:
{Number}

<static> {RGB} kh.schemer.getComplement(aRGB)
get the complement color (opposite hue)
Parameters:
{RGB} aRGB
Returns:
{RGB}

<static> {Array of RGB} kh.schemer.getGradients(aRGB1, aRGB2, aN)
get an array of colors between 2 colors.
Parameters:
{RGB} aRGB1
{RGB} aRGB2
{Integer} aN
number of returned colors
Returns:
{Array of RGB}

<static> {Array of RGB} kh.schemer.getMonochromatic(aRGB, aN, aReturnRef, aK)
get a array of associated monochromatic color (same h, s, different l).
Parameters:
{RGB} aRGB
{Integer} aN
Number of returned colors. Optional, default = 3.
{Boolean} aReturnRef
the aRGB reference is present in the returned array. Optional, default = true
{Float} aK
in [0, 1] a coefficient to change the gap of the luminosity: 1 will returns max of luminosity difference, 0 means that returned colors are the same of the initial. optional, default = 1.
Returns:
{Array of RGB} Note that the array contains the aRGB value

<static> {RGB} kh.schemer.getNegative(aRGB)
get the negative color (opposite r, g, and b)
Parameters:
{RGB} aRGB
Returns:
{RGB}

<static> {Array of RGB} kh.schemer.getShades(aRGB, aN)
get a array of equally espaced shade variations of a color, i.e. adding black to the color.
Parameters:
{RGB} aRGB
the color reference. Note that this color is not part of the returned array.
{Integer} aN
number of returned shades
Returns:
{Array of RGB} It doesn't contain the aRGB value.

<static> {Array of RGB} kh.schemer.getTetrads(aRGB, aAlpha)
get tetradic colors (complement of a color + a color with espaced of alpha and its complement).
Parameters:
{RGB} aRGB
{Number} aAlpha
in [0, 180]. Optional, default = 90
Returns:
{Array of RGB} length = 3

<static> {Array of RGB} kh.schemer.getTints(aRGB, aN)
get a array of equally espaced tint variations of a color, i.e. adding white to the color.
Parameters:
{RGB} aRGB
the color reference. Note that this color is not part of the returned array.
{Integer} aN
number of returned tints
Returns:
{Array of RGB} It doesn't contain the aRGB value.

<static> {Array of RGB} kh.schemer.getTones(aRGB, aN)
get a array of equally espaced tone variations of a color, i.e. adding gray to the color.
Parameters:
{RGB} aRGB
the color reference. Note that this color is not part of the returned array.
{Integer} aN
number of returned tones
Returns:
{Array of RGB} It doesn't contain the aRGB value.

<static> {Array of RGB} kh.schemer.getTriads(aRGB, aAlpha)
get triads color. Note that if alpha = 150, it's the split complement colors, and if alpha = 30, it's analogous colors.
Parameters:
{RGB} aRGB
{Number} aAlpha
in [0, 180]. Optional, default = 120
Returns:
{Array of RGB} length = 2

Documentation generated by JsDoc Toolkit 2.3.0

Khromaxul - version: 0.3alpha - Thu Jul 30 2009 14:37:38 GMT+0200 (CEST)