RGB to hex colors and hex colors to RGB - PHP
  RGB to hex colors and hex colors to RGB - PHP
2D Graphics
3D Graphics
Web Design & Development
Business Applications
Business Development
Databases
Desktop Programming
Operating Systems
Video Editing
Miscellaneous
Newsletter
User Login
  • Username
  • Password
Stats
  • Tutorials: 39,020
  • Categories: 572

PHP Tutorials : 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. RGB to hex colors and hex colors to RGB - PHP  tutorial
    View Tutorial

Detailed Information

     Tutorial: RGB to hex colors and hex colors to RGB - PHP
     Date Listed: 2011-01-17
     Submitted By: CodeCaller
     Total Hits: 734
     Rating Tutorial Rating 3.23Tutorial Rating 3.23Tutorial Rating 3.23Tutorial Rating 3.23Tutorial Rating 3.23 (30 votes)

    Discuss Tutorial
    Comment On Tutorial
    View Tutorial
    Report Broken Link

 





© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap