mIRC Homepage
Posted By: Armada shot in the dark - 22/10/04 09:58 PM
I have a php script that pulls data from a database, I donload said page via sockets,

#FFFFFF¿#63659C is on the end of said line for each dj this varies

Now, I can convert the html colors on the end to RGB, was just wondering if theres a remote chance of showing those to users in irc, they are the dj's schedule colors, Im guessing not but figured Id ask anyways.
I know I can do
$rgb($base($remove(#FFFFFF,$chr(35)),16,10))
Which returns 255,255,255
Was just curious how A: I can make that turn to white
and B: Make a representation of say 00FFFF
Posted By: Sigh Re: shot in the dark - 23/10/04 11:09 AM
One way you could represent this color is by assigning it to one of the 16 built in colors with /color N rgbvalue then echoing it with that particular color. However, I'd use a picture window and draw a shape/text in the desired color, /drawrect -fr for example allows you to specify the RGB value of the color to fill a rectangle with and you can even use /drawtext for coloring text which might be applicable in this case

For handling 00FFFF it's basically the same, $base(00FFFF,16,10) for the conversion, then doing what I mentioned above with the picture window or changing inbuilt colors
Posted By: Armada Re: shot in the dark - 25/10/04 09:33 AM
I get the picture window thing but this was to show others guess its not possible thanks tho
© mIRC Discussion Forums