github.com/razvanm/vanadium-go-1.3@v0.0.0-20160721203343-4a65068e5915/doc/progs/image_package5.go (about) 1 // cmpout 2 3 // Copyright 2012 The Go Authors. All rights reserved. 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file. 6 7 package main 8 9 import ( 10 "fmt" 11 "image" 12 "image/color" 13 ) 14 15 func main() { 16 m := image.NewRGBA(image.Rect(0, 0, 640, 480)) 17 m.Set(5, 5, color.RGBA{255, 0, 0, 255}) 18 fmt.Println(m.At(5, 5)) 19 }