http://www.nofunc.com/ I found a number of color libraries there. However they aren't documented (at all afaik), aren't isolated (one uses a global window.color), and to me the code format is utterly confusing. Not only that but there is no explicit license statement (they have CC and GPL links in the footer but never state what actual license they use), and the only way to "contribute" to the code is by sending them e-mails. So it's fairly closed off. So we can get ideas on what kind of color management to implement from there.
I haven't specifically gotten to work on a color library yet. At work we were considering options for replacing our internal JS library (while it was fun to create, I have little desire to reinvent a pile of work building a animation module to it and next project phase will need animation). jQuery fits in best out of all frameworks (isolated, not bloated, uses selectors and has .attr and .css), however at the same time there were issues with integrating with our App in the line of cases where we would be forced to develop around jQuery rather than integrating jQuery (ie: forced to alter a coding convention cause jQuery didn't support integration in a certain area) as well as incompatibilities with some API ideals and stance towards plugins. Rather than trying to justify snuffing out our own principles just so we could use an existing framework, we decided the best plan was to fork jQuery in order to cleanup the API and extend it a bit. (note that by fork, I don't really mean fork <http://en.wikipedia.org/wiki/Fork_%28software_development%29> in that normal heavyweight tone, I mean something more like an off-repo branch which is continually integrating trunk; the technique I'm using already seams to have a very nice ability to in parallel visualize development of both jQuery and 4query together attributing where attribution belongs) So I've been working on that on the side, and we haven't gotten to color selection inside of our application yet. That will likely be phase2 or phase3 when we're improving things, right now we're trying to get a private beta ready. Sure, I'd be willing to share ideas and help work on the code. As for color formats, I think it makes most sense to allow input in the formats '#rrggbb', 'rgb(rr, gg, bb)', [int, int, int], {red: int/hex, green: int/hex, blue: int/hex} and store color in [0..255, 0..255, 0..255] format. I can agree that Alpha, Hue, etc... should be stored in 0..1 floating point, however Color is by definition on the web rgb fixed to 0..255 range. Though I suppose if it were to simplify internal storage, floating point might be alright (ensuring matrix transformations never output something like 64.234 instead of 64) since I just verified that none of the numbers within 255 are unsafe for converting between int and float. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://nadir-seen-fire.com] -Nadir-Point (http://nadir-point.com) -Wiki-Tools (http://wiki-tools.com) -MonkeyScript (http://monkeyscript.nadir-point.com) -Animepedia (http://anime.wikia.com) -Narutopedia (http://naruto.wikia.com) -Soul Eater Wiki (http://souleater.wikia.com) Mark Gibson wrote: > Hi Daniel, > Did you get anywhere with this? ie. find anything or write anything? > > I've start work on a colour library and have just setup a page on > jQuery-UI > dev wiki regarding the creation of a general use colour library for > use by > jQuery-UI and independently. > > I wondered if you'd like to share your thoughts on this, and maybe > even > work together so we can get something decent going soon. > > https://jqueryui.pbwiki.com/Color-Library > > Regards > - Mark Gibson > > On Feb 8, 3:47 am, Daniel Friesen <[email protected]> wrote: > >> Before I go and write one of my own. Does anyone know of any good >> JavaScriptcolorlibrarywritten? >> >> For an idea of the scope wanted, here's the plan I'm hoping for (Ideally >> I may be writing this for use at work inside of multiple parts of the >> system): >> >> The first half is generic management of colors. ie: conversion between >> RGB/HSV/CMYK/etc...colorspaces as well ascolormatrix transformations >> Hue/Brightness/Temperature/etc... >> I'll likely use that as a backend as well in thecolorpicker used at work. >> >> And the second part is the more usable portion meant for use in more >> than just simplecolorpicking and advancedcolortransformation. >> The idea is the generation of random colors (along a limited brightness >> range) as well as generation of colors with a bit of an offset in >> brightness. >> >> Think dynamic editing applications. Creating a dark transparent overlay >> and then creating a few boxes with randomcolorthemes (random >> background colors with borders using a little darker of the samecolor). >> >> Of course, ideally this could be thrown into a jQuery plugin then to >> allow easy generation of containers using various or randomcolorschemes. >> >> -- >> ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://nadir-seen-fire.com] >> -Nadir-Point (http://nadir-point.com) >> -Wiki-Tools (http://wiki-tools.com) >> -MonkeyScript (http://monkeyscript.nadir-point.com) >> -Animepedia (http://anime.wikia.com) >> -Narutopedia (http://naruto.wikia.com) >> -Soul Eater Wiki (http://souleater.wikia.com) >> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
