- Loading...
- No images or files uploaded yet.
|
|
Color Library
type: utility release: 0.0 priority: low status: in development documentation: http://www.adaptavist.com/display/free/jQuery+Colour+Library demo: http://test3.internal.adaptavist.net/~mgibson/
1 - Description:
A common set of functions for colour manipulation, that should be utilitised by UI widgets wherever required, and also for use independently of the UI core.
The ColorPicker widget will require a set of functions for parsing, and writing CSS colour definitions, as well as convertions between colour spaces (ie. RGB, HSV, HSL, etc).
The Effects core uses a set of colour related functions internally, these could be promoted into this library for re-use elsewhere.
2 - Visual Design:
N/A
3 - Functional Specifications/Requirements:
(Detailed description of how the script will be structured: defaults, options, architecture, extensibility, etc.)
4 - Markup & Style:N/A
5 - Latest version of plugin:
The current development efforts for this have been moved to github:
http://github.com/jollytoad/jquery.color
6 - Open issues being discussed
|
Comments (4)
Carsten Klein said
at 1:13 pm on Aug 13, 2009
please also support quadruples as the color value, including the alpha transparency for a given color.
see my comment @ color picker for some more info
Mark Gibson said
at 5:00 am on Aug 27, 2009
The current library already supports this for all of the implement colour spaces (ie RGB, HSV). See the docs for more details: http://www.adaptavist.com/display/free/jQuery+Colour+Library
Carsten Klein said
at 1:14 pm on Aug 13, 2009
please also implement named properties for the set of components of a given color, i.e. .red, .green, .blue, .alpha etc.
Mark Gibson said
at 5:14 am on Aug 27, 2009
The colour tuples have a fixed order, so i'm not sure this is entirely necessary as it would just add extra complication and overhead - ie. having to set the properties and maintain the properties - if getter/setter overrides were supported in all browser this would be easy - but they aren't. Instead we could introduce getter methods, eg: $.Color('#fff').red();
This would have the added advantage of the automatic colour space conversion, so you could extract any component regardless of the colour space.
You don't have permission to comment on this page.