passthrough passthrough passthrough passthrough passthrough

PHP Palette LibraryJune 2010

Being trained as a painter, a Fine Arts major in college I have always been fascinated with color. It wasn't until after college in which I really started researching color in a more scientific manner; as opposed to the trial and error nonsense most of my professors encouraged. My research consisting of reading many textbooks based on colorimetry: the science of color...not feel-good-hippy-artsy-fartsy color theory books. I also conducted my own experiments and have made countless hours observing the effects of color.

Now working routinely in various computer languages it became only natural to explore color in this modern medium. When writing web-based software sometimes my goal is simply to be attain more knowledge & skills, but sometimes I create computer code that is quite useful-go figure:). While still being revised, I have written a library comprised of several classes for generating interactive color palettes. It is called the PHP Palette Library

This color palette library is written in PHP and is designed for internet/website usage. Upon calling the proper methods and inputing various data, these classes write all the HTML, javaScript, and CSS necessary to create interactive color picker palettes. This system is incredibly flexible and scalable. It took me weeks to write this and was much fun (most of the time). By the way all the generated html code validates...the CSS does not because I am using some CSS3 features... I hope you enjoy it!

Click on one of the palettes below!





You Clicked:




Above represents some sample palettes generated from my PHP Palette Library. clicking on any "swatch" in each palette will change the center box's background color. 5 separate palettes, dynamically processed in PHP to create html,css & JavaScript markup all interacting on the same page and it validates with no html errors!

Documentation

The library is all based upon the main class Palette. This class extends many of its methods to more specific child classes that help create the diverse range of palettes in this library.

You can read about all the classes here:
* Examples of the various onclickEvents can be viewed here.

Class::Palette

Child Classes:
GrayscalePalette, PsPalette, PureHuePalette, SingleHuePalette, WebSafePalette


Download

Available soon.


Updates


Comments

There are no comments yet.

 

Post a Comment...

name: ** = required
website:
email: *If displayed your email will be protected from bots & displayed like: person[at]google[dot]com


Comment:*
remove: * [?]