Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-13-2008, 01:15 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
RGB/Hex Color Functions

I dunno... I was bored...

This script converts Graal RGB colors into the hex color table format and vice versa.

Example of use:
PHP Code:
echo("#FF0000 converted in to RGB: " HextoRGB("#ff0000"));
echo(
"1,0,0 converted to hex is: " RGBtoHex(1,0,0)); 
Would return:
PHP Code:
#FF0000 converted in to RGB: 1,0,0
1,0,0 converted to hex is#FF0000 
Attached Files
File Type: txt colorfunc.txt (1,013 Bytes, 302 views)
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:08 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.