Grayscale image: Difference between revisions
Content added Content deleted
(→{{header|Fōrmulæ}}: misplaced) |
(Added Fōrmulæ entry in correct place) |
||
Line 1,405: | Line 1,405: | ||
{{output}} |
{{output}} |
||
[[File:Color to Grayscale.png]] |
[[File:Color to Grayscale.png]] |
||
=={{header|Fōrmulæ}}== |
|||
{{FormulaeEntry|page=https://formulae.org/?script=examples/Grayscale_image}} |
|||
'''Solution''' |
|||
Note the use of the dot product in the calculation of the gray level. |
|||
[[File:Fōrmulæ - Grayscale image 01.png]] |
|||
'''Test case''' |
|||
[[File:Fōrmulæ - Grayscale image 02.png]] |
|||
[[File:Fōrmulæ - Grayscale image 03.png]] |
|||
=={{header|Go}}== |
=={{header|Go}}== |