js |
JsGouache.jsJsGouache aims to offer a tool for javascript developers to manipulate colors within various color spaces while raising awareness for different types of color deficiencies. AboutJsGouache aims to offer a tool for javascript developers to manipulate colors within various color spaces while attempting to raise awareness for different types of color deficiencies. The library offers various functions for manipulation of the more common color spaces used on the web: RGB, Hexadecimal, HSL. It also implements a theoretical (limited) simulation of the LMS color space (http://en.wikipedia.org/wiki/LMS_Color_Space) References
NoteMike Koss has a pretty interesting approach at ‘class’ inheritance that he explains here: http://mckoss.com/jscript/object.htm Version
Requirements
Copyrightcopyright © 2008 Francois Lafortune ( aka: QuickRedFox ) LicenseThis code is freely distributable under the terms of the GNU GENERAL PUBLIC LICENSE Version 3 Summary
The JsGouache color object (constructor)ConstructorThe JsGouache.Color construct creates the main color object which can then be used within the various color spaces. It is suggested though, that you use the proper constructs for the desired spaces. (RGBColor, HexColor, HSLColor) Parameters
ReturnsA JsGouache.Color Object See Also
The RGB color object (constructor)ConstructorCreates a JsGouache.RGBColor Object Parameters
ReturnsA JsGouache.RGBColor Object See Also
The Hexadecimal color object (constructor)ConstructorCreates a JsGouache.HexColor Object Parameters
ReturnsA JsGouache.HexColor Object See Also
JsGouache. ColorThese functions apply to all the color spaces Summary
JsGouache. Color. simulateColor perception disability simulations. Most of this is based on code from http://www.fx.clemson.edu/~rkarl/c2g.html Which in turn, is based on the H. Brettel, F. Vienot and J. Mollon Algorithm. Parameters
ReturnsJsGouache.Color Object JsGouache. ColorAccessible. readabilityGet the readability factor of two colors (foreground and background) According to current W3C Standards Parameters
ReturnsObject containing the perceived hue contrast and perceived brightness contrast for the supplied colors for each type of deficiency. (The more trusted one being hue contrast) |