Color of a screen pixel: Difference between revisions
Content deleted Content added
m →Using GTK3: Remove unused assignment |
Added Groovy |
||
Line 587:
Color of pixel at (659, 253) is 0x300a24
</pre>
=={{header|Groovy}}==
<lang Groovy>import java.awt.Robot
class GetPixelColor {
static void main(args) {
println getColorAt(args[0] as Integer, args[1] as Integer)
}
static getColorAt(x, y) {
new Robot().getPixelColor(x, y)
}
}
</lang>
=={{header|Icon}} and {{header|Unicon}}==
|