mIRC Home    About    Download    Register    News    Help

Print Thread
#101338 22/10/04 09:58 PM
Joined: Mar 2004
Posts: 540
A
Armada Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
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

#101339 23/10/04 11:09 AM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
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

#101340 25/10/04 09:33 AM
Joined: Mar 2004
Posts: 540
A
Armada Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
I get the picture window thing but this was to show others guess its not possible thanks tho


Link Copied to Clipboard