Jump to content

Color of a screen pixel: Difference between revisions

add RPL
(Omitted EasyLang)
(add RPL)
Line 1,220:
</pre>
 
=={{header|RPL}}==
RPL was designed for black-and-white LCD screens. The <code>PIX?</code> instruction returns 1 if the designated pixel is black - actually dark gray or blue, depending on the model - and 0 if it's not.
(10,10) PIX?
<code>PIX?</code> was introduced in 1990 with the HP-48. On previous machines (HP-28C/S), the only way to test a pixel was to convert the status of the 131x32 LCD matrix into a 548-character string using the <code>LCD→</code> command, and then test the appropriate bit of the appropriate character.
=={{header|Ruby}}==
 
This example requires ImageMagick >= 6.2.10 (works on X11, unsure about other platforms).
 
1,150

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.