go-learning/tour_of_go/l5/images.go

13 lines
163 B
Go
Raw Permalink Normal View History

2025-09-26 14:43:54 +00:00
package main
import (
"fmt"
"image"
)
func main() {
m := image.NewRGBA(image.Rect(0, 0, 100, 100))
fmt.Println(m.Bounds())
fmt.Println(m.At(0, 0).RGBA())
}