Recommend this page to a friend! |
Download .zip |
Info | Screenshots | View files (12) | Download .zip | Reputation | Support forum (6) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2007-10-10 (9 years ago) | 68% | Total: 3,376 | All time: 991 This week: 1,109 |
Version | License | PHP version | Categories | |||
truecolorpicker 1.0 | Freely Distributable | 4 | Graphics, Content management, AJAX |
Description | Author | ||||||||||||||||
This class can be used to present a palette to let the user pick colors. Innovation Award
|
|
class.TrueColorPicker.php class.ColorElement.php Developed by: Moe Sweet <moesweet@myanmar.com.mm> From: Myanmar (Burma) Date: 28-June-07 Thanks to: Sithu Kyaw, Pyone Kay Khine. Most color pickers used on the web today only support web colors. For some applications like a garment or a paint shop, each color code should reflect the color from the real world. TCP (True Color Picker) uses GD library to provide color picking facility as many colors as in "Photoshop" color picker. There is only one factor you have adjust, the "detail factor". It determines how many number of steps/blocks between each corner of the 256*256 picker box. Thus maximum is 256. When it is set to 256, the total number of colors available is 256*256*256. Minimum setting should not less than 16. Optimum is 64. You pick a color code using GD, you re-display it using GD. The "ColorElement" class can display any valid color codes (#000000 to #ffffff) in a variable size rectangle box. Drawbacks ---------------- You can preload a color to TCP to show in "current" box, like Photoshop. But TCP cannot locate that color in the picker. TCP does not support CMYK color. They may come up in version 2. ColorElement class does not support textures. Tested on: Firefox 2 and IE 6. Mail me for any questions, comments and suggestions for improvement. Happy Picking! |
Screenshots | ||
Files |
File | Role | Description | ||
---|---|---|---|---|
TrueColorPicker (10 files) | ||||
example.php | Example | Usage example | ||
readme.txt | Doc. | Read me file |
Files | / | TrueColorPicker |
File | Role | Description |
---|---|---|
index.php | Example | The one that shows the Color Picker |
class.TrueColorPicker.php | Class | True Color Picker Class |
class.ColorElement.php | Class | Color Element Class |
colorPicker.js | Data | Javascript file that triggers Ajax functions |
buildBrightnessBox.php | Aux. | A file called by Ajax, no need to modify |
buildBrightnessTable.php | Aux. | A file called by Ajax, no need to modify |
drawColorElement.php | Aux. | This file actually draw the color elements |
generateBrightnessArrays.php | Aux. | Algorithm for calculating color codes for brightness box |
hueBox.png | Data | The Thin Vertical Bar, I call it Hue Box, the big one, Brightness Box |
hueColors.txt | Data | List of color codes of hue box |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | User Comments (2) | |||||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.