PHP Classes
elePHPant
Icontem

HTML Color Matrix: Determine the closest browser safe color value

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2006-01-28 (10 years ago) RSS 2.0 feedStarStar 32%Total: 566 All time: 5,127 This week: 1,154Up
Version License Categories
colormatrixhtml 1.0GNU General Publi...Graphics
Description Author

You may have heard of the browser safe palette, Netscape palette, 216 palette, Web palette, or 6x6x6 color cube. All these terms refer to the same set of colors that usually are guaranteed to be available for displaying in Web pages in a browser screen using 256 colors without color remapping.

If you are concerned that your Web design work will be viewed in a 256 color (8-bit) screen, you may use the methods provided by this class to convert your color values to the closest color tones in the 216 color browser safe palette.

This class accepts hexadecimal color values or RGB values.

Picture of tobozo
  Performance   Level  
Name: tobozo <contact>
Classes: 3 packages by
Country: France France
Age: ???
All time rank: 168051 in France France
Week rank: 1482 Up38 in France France Up

  Files folder image Files  
File Role Description
Plain text file colorMatrixHTML.class Class Class for converting color values to html browser-safe values
Accessible without login Plain text file example.php Example Example code
Accessible without login Plain text file showColorMatrix.php Example Code Sample to display 216 colors as html

 Version Control Unique User Downloads Download Rankings  
 0%
Total:566
This week:0
All time:5,127
This week:1,154Up
 User Ratings  
 
 All time
Utility:50%StarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:32%StarStar
Rank:2729