Color of a screen pixel: Difference between revisions

no edit summary
No edit summary
Line 14:
In the app's display below, the purple Ball sprite was touched on the left canvas, but the pixel color (green) returned was from the area below it.
[https://lh4.googleusercontent.com/-Gw0xm7RIEck/Uute2nQSGsI/AAAAAAAAJ90/rq3UuWYE9Yw/s1600/Capture.PNG <VIEW THE BLOCKS AND ANDROID APP DISPLAY>]
=={{header|8086 Assembly}}==
===With Interrupts===
MS-DOS has a built-in way to calculate the color of a pixel on-screen.
<lang asm>;input: cx = x coordinate of pixel, dx = y coordinate of pixel, bh = page number
mov ah,0Dh
int 10h</lang>
 
=={{header|AutoHotkey}}==
1,489

edits