Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Thu Mar 21, 2002 4:36 pm Post subject: |
|
|
The following is supposed to work, although it of course won't take account alternative colors such as "red" or "ltgreen", it just works with hex/integer colors such as $00123456 or 123456.
Code: |
%%vdscolor = @sum($00123456,0)
%%hex = @hex(%%vdscolor,8)
%%blue = @sum($@substr(%%hex,3,4),0)
%%green = @sum($@substr(%%hex,5,6),0)
%%red = @sum($@substr(%%hex,7,8),0)
info VDS color: %%vdscolor@cr()Hex color: %%hex@cr()Red: %%red@cr()Green: %%green@cr()Blue: %%blue
|
Best regards,
Tommy |
|