Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "golang.org/x/tour/pic"
- func Pic(dx, dy int) [][]uint8 {
- board := [][]uint8{}
- for y := 0; y < dy; y++ {
- board = append(board, []uint8{})
- for x := 0; x < dy; x++ {
- board[y] = append(board[y], uint8(x+y))
- }
- }
- return board
- }
- func main() {
- pic.Show(Pic)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement