mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 08:47:35 +02:00
Cleanup image output
This commit is contained in:
parent
41bd27ca1b
commit
4edf38aa25
1 changed files with 6 additions and 2 deletions
|
@ -31,8 +31,12 @@
|
|||
; #\J)))
|
||||
(define (life-print grid iteration)
|
||||
;(clear-vt100)
|
||||
(let ((img (png:init 100 100))
|
||||
(path (string-append "life-" (number->string iteration) ".png")))
|
||||
(let ((img (png:init (cols grid) (rows grid)))
|
||||
(path (string-append
|
||||
"life-"
|
||||
(if (< iteration 10) "0" "")
|
||||
(number->string iteration)
|
||||
".png")))
|
||||
(each grid
|
||||
(lambda (i j v)
|
||||
;(display (if v "*" " "))
|
||||
|
|
Loading…
Add table
Reference in a new issue