Browse Source

some more post edits

Getty Ritter 3 years ago
parent
commit
15767765b6

+ 1 - 0
in-praise-of-pbm/.gitignore

@@ -0,0 +1 @@
+*~

File diff suppressed because it is too large
+ 49 - 31
in-praise-of-pbm/POST.md


BIN
in-praise-of-pbm/images/cellular-automata.png


BIN
in-praise-of-pbm/images/glyphs.png


BIN
in-praise-of-pbm/images/mazelike.png


BIN
in-praise-of-pbm/images/pbm-in-gimp.png


BIN
in-praise-of-pbm/images/pgm-sample.png


BIN
in-praise-of-pbm/images/ppm-sample.png


BIN
in-praise-of-pbm/images/rects.png


+ 5 - 1
in-praise-of-pbm/pbm/main.wren

@@ -4,7 +4,11 @@ var height = 3
 var image = []
 
 for (y in 0...height) {
-  image.add(List.filled(width, 0))
+  var row = []
+  for (x in 0...width) {
+    row.add(0)
+  }
+  image.add(row)
 }
 // «end»
 

+ 5 - 1
in-praise-of-pbm/pgm/main.wren

@@ -3,7 +3,11 @@ var height = 12
 var image = []
 
 for (y in 0...height) {
-  image.add(List.filled(width, 0))
+  var row = []
+  for (x in 0...width) {
+    row.add(0)
+  }
+  image.add(row)
 }
 
 // «checkers»