___ Posted April 3, 2010 Share Posted April 3, 2010 Hy guys I starting to learn PHP and i creat a litlle code and now i want to put some colores. I looking in internet and i cant find the list of colors, i mean all codes of colors in php Link to comment https://forums.phpfreaks.com/topic/197485-list-of-colors/ Share on other sites More sharing options...
ignace Posted April 3, 2010 Share Posted April 3, 2010 How do you mean all codes of colors? All 16,777,216 (=16^6) colors? Link to comment https://forums.phpfreaks.com/topic/197485-list-of-colors/#findComment-1036538 Share on other sites More sharing options...
___ Posted April 3, 2010 Author Share Posted April 3, 2010 Quote How do you mean all codes of colors? For example if i want to put a green parte of page ., i need to put the code of color right? Quote All 16,777,216 (=16^6) colors? Lol .. no .., only the basic 100 colors Link to comment https://forums.phpfreaks.com/topic/197485-list-of-colors/#findComment-1036540 Share on other sites More sharing options...
UndeadCircus Posted April 3, 2010 Share Posted April 3, 2010 This isn't really math related.. But if you're talking about the hex values for colors, this website can help: http://ficml.org/jemimap/style/color/wheel.html Link to comment https://forums.phpfreaks.com/topic/197485-list-of-colors/#findComment-1036550 Share on other sites More sharing options...
Daniel0 Posted April 3, 2010 Share Posted April 3, 2010 PHP has no concept of colors, and it certainly has nothing to do with mathematics. Anyways, here you go for all the HTML colors: <?php for ($i = 0; $i <= 0xFFFFFF; ++$i) printf('<span style="color:#%1$06X">#%1$06X</span><br>' . PHP_EOL, $i); } Link to comment https://forums.phpfreaks.com/topic/197485-list-of-colors/#findComment-1036555 Share on other sites More sharing options...
___ Posted April 3, 2010 Author Share Posted April 3, 2010 That it guys, thank you .., now i get it To make webpages i need to know coding in PHP and design in HTML Link to comment https://forums.phpfreaks.com/topic/197485-list-of-colors/#findComment-1036580 Share on other sites More sharing options...
UndeadCircus Posted April 3, 2010 Share Posted April 3, 2010 Quote That it guys, thank you .., now i get it To make webpages i need to know coding in PHP and design in HTML That's pretty much how it goes. PHP isn't meant to be stand-alone. You gotta have a backing language to go with it. Link to comment https://forums.phpfreaks.com/topic/197485-list-of-colors/#findComment-1036590 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.