Bitmap/Read a PPM file: Difference between revisions
Content added Content deleted
Alextretyak (talk | contribs) (Added 11l) |
Alextretyak (talk | contribs) m (→{{header|11l}}) |
||
Line 57: | Line 57: | ||
F writeppmp3() |
F writeppmp3() |
||
V magic = "P3\n" |
V magic = "P3\n" |
||
V comment = "# generated from Bitmap. |
V comment = "# generated from Bitmap.writeppmp3\n" |
||
V s = magic‘’comment‘’("#. #.\n#.\n".format(.width, .height, 255)) |
V s = magic‘’comment‘’("#. #.\n#.\n".format(.width, .height, 255)) |
||
L(h) (.height - 1 .< -1).step(-1) |
L(h) (.height - 1 .< -1).step(-1) |
||
Line 113: | Line 113: | ||
Grey PPM: |
Grey PPM: |
||
P3 |
P3 |
||
# generated from Bitmap. |
# generated from Bitmap.writeppmp3 |
||
4 4 |
4 4 |
||
255 |
255 |