11-03-2024, 12:54 AM
(11-03-2024, 12:46 AM)PhilOfPerth Wrote: How can I convert this line:
Line (H, V)-(H+ 37, V+ 38), _RGB(200, 200, 200), BF
to set the _RGB colour to a colour in a sub, instead of this fixed colour? (I'm using a _NewImage 32-bit screen)
Sub Red might contain Color: _RGB(255,0,0)
The _RGB(r,g,b) function returns a long. You can pass that in as a parameter to the function
SUB Myline(MyColor&)
Line (H, V)-(H+ 37, V+ 38), MyColor&, BF
END SUB