Commits

Anonymous committed 7320093

fix color in make_canvas

  • Participants
  • Parent commits 12a8b8a

Comments (0)

Files changed (1)

 make_canvas() {
     echo make_canvas >&2
     local _canvas _xres _yres _c
-    _canvas=$1 _xres=$2 _yres=$3 _color=$5
+    _canvas=$1 _xres=$2 _yres=$3 _c=$4
 
     (($_canvas[0] = _xres, $_canvas[1] = _yres))
     for ((_i = 0; _i < _xres * _yres; _i++)); do
 example() {
     local canvas
     #                                    rrggbb
-    make_canvas canvas 500 500         0x000000
+    make_canvas canvas 500 500         0x555555
     draw_line   canvas   0   0 499 499 0xffffff
     draw_line   canvas   0 200 499 200 0xff0000
     draw_line   canvas 450  50 120 400 0x00ff00