Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pixel Color Test
#2
This is an unofficial answer ... 
(unofficial = might be incomplete or even confusing .... lol ....)

pixel(x,y) returns the color at position (x, y) as an array [r, g, b, a]

Code:
'pixel(x,y) returns the color at position (x, y) as an array [r, g, b, a]
getcolor=pixel(150,150)
wln getcolor
wln
write "RGBA "
for i = 0 to 3
    write getcolor[i]+" "
next

   
click the image to zoom in
Reply


Messages In This Thread
Pixel Color Test - by johnno56 - 04-11-2024, 08:27 PM
RE: Pixel Color Test - by 1micha.elok - 04-12-2024, 07:36 AM
RE: Pixel Color Test - by johnno56 - 04-12-2024, 10:54 AM
RE: Pixel Color Test - by Marcus - 04-12-2024, 01:43 PM
RE: Pixel Color Test - by Marcus - 04-14-2024, 10:38 AM
RE: Pixel Color Test - by johnno56 - 04-14-2024, 12:07 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)