浏览代码

some more post edits

Getty Ritter 4 年之前
父节点
当前提交
15767765b6

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

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

文件差异内容过多而无法显示
+ 49 - 31
in-praise-of-pbm/POST.md


二进制
in-praise-of-pbm/images/cellular-automata.png


二进制
in-praise-of-pbm/images/glyphs.png


二进制
in-praise-of-pbm/images/mazelike.png


二进制
in-praise-of-pbm/images/pbm-in-gimp.png


二进制
in-praise-of-pbm/images/pgm-sample.png


二进制
in-praise-of-pbm/images/ppm-sample.png


二进制
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»