PHP Classes

Colour matching

Recommend this page to a friend!

      WebSafeColors.inc.php  >  All threads  >  Colour matching  >  (Un) Subscribe thread alerts  
Subject:Colour matching
Summary:Is is possible to match to the nearest safe colour
Messages:2
Author:Phil
Date:2005-06-09 11:08:10
Update:2005-06-09 11:37:37
 

  1. Colour matching   Reply   Report abuse  
Picture of Phil Phil - 2005-06-09 11:08:10
First off, your class is adiquate, however, it stores all the values twice for now known reason.

Conversions between HEX and RGB values can be easily done in your own code. Store the colour code once and convert on demand.

However, my biggest question. Is it possible to pass a HEX or INT value of a colour, and match the nearest websafe colour.

  2. Re: Colour matching   Reply   Report abuse  
Picture of Er. Rochak Chauhan Er. Rochak Chauhan - 2005-06-09 11:37:37 - In reply to message 1 from Phil
Phil,
First of all let me thank you for your constructive feedback. I have noted all your points.
Just give me couple of days and I shall update this class, INCLUDING the function to get the
nearest web safe color.
Thanks again.

Rochak Chauhan.