Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting Line _RGB colours
#3
(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
Reply


Messages In This Thread
Setting Line _RGB colours - by PhilOfPerth - 11-03-2024, 12:46 AM
RE: Setting Line _RGB colours - by bplus - 11-03-2024, 12:53 AM
RE: Setting Line _RGB colours - by PhilOfPerth - 11-03-2024, 12:56 AM
RE: Setting Line _RGB colours - by ahenry3068 - 11-03-2024, 12:54 AM
RE: Setting Line _RGB colours - by PhilOfPerth - 11-03-2024, 01:06 AM
RE: Setting Line _RGB colours - by bplus - 11-03-2024, 01:02 AM
RE: Setting Line _RGB colours - by SMcNeill - 11-03-2024, 02:33 AM
RE: Setting Line _RGB colours - by PhilOfPerth - 11-03-2024, 05:37 AM
RE: Setting Line _RGB colours - by bplus - 11-03-2024, 01:08 AM
RE: Setting Line _RGB colours - by PhilOfPerth - 11-03-2024, 01:32 AM
RE: Setting Line _RGB colours - by bplus - 11-03-2024, 01:29 AM



Users browsing this thread: 2 Guest(s)