Jump to content

Grayscale image: Difference between revisions

Line 1,327:
animage = gray
call output_ppm(an_unit, animage)</syntaxhighlight>
 
=={{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|FreeBASIC}}==
2,120

edits

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