RGB to HEX

Garrett Hylltun garrett at paraboliclogic.com
Thu Mar 2 23:16:41 EST 2006


On Mar 2, 2006, at 10:28 AM, Jeanne A. E. DeVoto wrote:

>  put "#" into theWebColor -- leading "#"
>  repeat for each item myItem in theColorNumber -- numeric triplet -  
> R,G,B
>     get baseConvert(myItem,10,16)
>     if the length of it is 1 then put zero before it  -- each  
> component must be 2-digit
>     put it after theWebColor
>   end repeat
>
> -- 
> jeanne a. e. devoto ~ revolution at jaedworks.com

Thank you very much, this helped me figure out how to use that  
baseConvert.  And thank you Sarah and FlexibleLearning for also  
responding, very much appreciated.

Thanks,
-Garrett



More information about the Use-livecode mailing list