Color of a screen pixel: Difference between revisions
Content added Content deleted
(Add SmileBASIC implementation) |
|||
Line 746: | Line 746: | ||
{{libheader|Scala}} |
{{libheader|Scala}} |
||
<lang Scala>def getColorAt(x: Int, y: Int): Color = new Robot().getPixelColor(x, y)</lang> |
<lang Scala>def getColorAt(x: Int, y: Int): Color = new Robot().getPixelColor(x, y)</lang> |
||
=={{header|SmileBASIC}}== |
|||
<lang smilebasic>DEF GETPX X,Y OUT R,G,B |
|||
PCOL=GSPOIT(X,Y) |
|||
RGBREAD PCOL OUT R,G,B |
|||
END</lang> |
|||
=={{header|Tcl}}== |
=={{header|Tcl}}== |