Skip to content

Instantly share code, notes, and snippets.

@ksomemo
Created July 17, 2014 02:36
Show Gist options
  • Save ksomemo/d49f694b1453c1d3d730 to your computer and use it in GitHub Desktop.
Save ksomemo/d49f694b1453c1d3d730 to your computer and use it in GitHub Desktop.
package main
import (
"code.google.com/p/go-tour/pic"
)
func Pic(dx, dy int) [][]uint8 {
t := make([][]uint8, dy)
for i := range t {
t[i] = make([]uint8, dx)
}
return t
}
func main() {
pic.Show(Pic)
}
@ksomemo
Copy link
Author

ksomemo commented Jul 17, 2014

青い画像が出力された

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment