Color of a screen pixel: Difference between revisions

m
Line 436:
const y = 100
cols = getpixelcolors(x, y)
println("At screen point (x=$x, y=$y) the colorscolor RGB components are red: $(cols[1]), green: $(cols[2]), and blue: $(cols[3])")
</lang> {{output}} <pre>
At screen point (x=120, y=100) the colorscolor RGB components are red: 1, green: 36, and blue: 86
</pre>
 
4,102

edits