Skip to content

Instantly share code, notes, and snippets.

@ble
Created March 22, 2013 15:43
Show Gist options
  • Save ble/5222276 to your computer and use it in GitHub Desktop.
Save ble/5222276 to your computer and use it in GitHub Desktop.

Revisions

  1. ble created this gist Mar 22, 2013.
    7 changes: 7 additions & 0 deletions gistfile1.go
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    func Pic(dx, dy int) [][]uint8 {
    result := make([][]uint8, dy);
    for y := 0; y < dy; y++ {
    result[y] = make([]uint8, dx);
    }
    return result
    }