Color of a screen pixel: Difference between revisions
Content added Content deleted
Line 436: | Line 436: | ||
const y = 100 |
const y = 100 |
||
cols = getpixelcolors(x, y) |
cols = getpixelcolors(x, y) |
||
println("At screen point (x=$x, y=$y) the |
println("At screen point (x=$x, y=$y) the color RGB components are red: $(cols[1]), green: $(cols[2]), and blue: $(cols[3])") |
||
</lang> {{output}} <pre> |
</lang> {{output}} <pre> |
||
At screen point (x=120, y=100) the |
At screen point (x=120, y=100) the color RGB components are red: 1, green: 36, and blue: 86 |
||
</pre> |
</pre> |
||