Grayscale image: Difference between revisions

→‎{{header|REXX}}: added a section to show how a "color" may be expressed in other forms in REXX.
m (→‎{{header|REXX}}: added a comment to the REXX section header.)
(→‎{{header|REXX}}: added a section to show how a "color" may be expressed in other forms in REXX.)
Line 1,496:
end /*col*/ /* [↑] x%1 is the same as TRUNC(x) */
/*stick a fork in it, we're all done. */</lang>
Other alternatives to express the &nbsp; ''blue'' &nbsp; color are:
<lang rexx> blue= "00 00 ff"x /*define the blue color (hexadecimal).*/
blue= '00 00 ff'x /*define the blue color (hexadecimal).*/
blue= '0000ff'x /*define the blue color (hexadecimal).*/
 
blue= '00000000 00000000 11111111'b /*define the blue color (binary). */
blue= '000000000000000011111111'b /*define the blue color (binary) */
 
blue= 'zzy' /*define the blue color (character). */
/*not recommended because of rendering.*/
/*where Z is the character '00'x */
/*where Y is the character 'ff'x */
 
/*Both Z & Y are normally not viewable*/
/*on most terminals (appear as blanks).*/</lang>
 
=={{header|Ruby}}==