mIRC Homepage
Posted By: pheonix $base - 20/09/03 03:31 AM
//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
Posted By: DixrouE Re: $base - 20/09/03 03:55 AM
$rgb($base(FFFFFF,16,10))
Posted By: pheonix Re: $base - 20/09/03 04:07 AM
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
© mIRC Discussion Forums