Anonymous user
Grayscale image: Difference between revisions
m
→{{header|REXX}}: added a comment to the REXX section header.
m (→{{header|REXX}}: changed/added comments and whitespace, changed indentations, optimized/simplified the code for calculations.) |
m (→{{header|REXX}}: added a comment to the REXX section header.) |
||
Line 1,479:
=={{header|REXX}}==
Note: REXX uses characters instead of binary for storing numbers, so there is no rounding (using characters to
:: store numbers is almost the same as using decimal floating point).
<lang rexx>/*REXX program converts a RGB (red─green─blue) image to a grayscale image. */
blue= '00 00 ff'x /*define the blue color (hexadecimal).*/
|