Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting Line _RGB colours
#6
(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, Western Australia.) Big Grin
Please visit my Website at: http://oldendayskids.blogspot.com/
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Setting mouse to ignore outside of _NewImage PhilOfPerth 11 736 12-18-2025, 07:20 PM
Last Post: Pete
  Using CONST & _RGB used together seem to error... Dav 12 714 12-12-2025, 12:29 AM
Last Post: Dav
  setting program to display always on top of other windows without having the focus? madscijr 20 4,216 05-24-2024, 07:45 PM
Last Post: madscijr
  Having trouble Windows command line SORT via SHELL GTC 19 4,439 08-26-2023, 04:19 AM
Last Post: GTC
  SHELL creates unicode file, can't read correctly with LINE INPUT thesolarcode 3 1,246 05-06-2023, 09:41 PM
Last Post: thesolarcode

Forum Jump:


Users browsing this thread: 1 Guest(s)