Bitmap/Write a PPM file: Difference between revisions

Content added Content deleted
(Changed File to Stream which allows to use the module to write in a pipe.)
Line 1,339: Line 1,339:


when isMainModule:
when isMainModule:
var image = initImage(100, 50)
var image = newImage(100, 50)
image.fill(color(255, 0, 0))
image.fill(color(255, 0, 0))
for row in 10..20:
for row in 10..20: