mIRC Home    About    Download    Register    News    Help

Print Thread
#50320 20/09/03 03:31 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
//echo -a $+($chr(35),$base($rgb(255,255,255),10,16))
this is what i use to convert $rgb values to hexidecimal colours for .html
//echo -a $base($+($chr(35),FFFFFF),16,10)
shouldn't this reverse it, so it changes hexidecimal to $rgb ?
crazy


new username: tidy_trax
#50321 20/09/03 03:55 AM
Joined: Dec 2002
Posts: 11
D
Pikka bird
Offline
Pikka bird
D
Joined: Dec 2002
Posts: 11
$rgb($base(FFFFFF,16,10))


DixrouE
#50322 20/09/03 04:07 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
thanks grin grin grin

just in case anyone wants it:S
Code:
convert {
  if ($4 == html) { return $+($chr(35),$base($rgb($1,$2,$3),10,16)) }
  elseif ($2 == mirc) { return $rgb($base($remove($1,$chr(35)),16,10)) }
}

$convert(255,255,255,html) = #FFFFFF
$convert(#FFFFFF,mirc) = 255,255,255


new username: tidy_trax

Link Copied to Clipboard