11-03-2024, 01:06 AM
(11-03-2024, 12:54 AM)ahenry3068 Wrote:(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
Thank you. That looks pretty straightforward. I'll try that.
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.)
Please visit my Website at: http://oldendayskids.blogspot.com/
Please visit my Website at: http://oldendayskids.blogspot.com/