rgb to hex colors and hex colors to rgb - php

rgb to hex colors and hex colors to rgb - php

when using colors in html and css you need to use a hexadecimal color (something like #ffffff) which is the base 16 value from the rgb color scale. sometimes you'll need to use the rgb scale instead, for example when allocating colors when drawing images with php and you maybe just prefer to write it in one of the ways even though you need to have it in the other. i will in this tutorial show you how you can make two functions(fromrgb and torgb) which can convert hexadecimal colors to rgb colors and vice versa.

Website Link Visit Link Here
Author: CodeCall Programming Forum

  • November 13, 2009 10:50 pm
  • Related Tutorials

    Subscribe to get this amazing EBOOK FREE


    By subscribing to this newsletter you agree to our Privacy Policy

    Skip to content