Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "image"
- import "image/color"
- import "image/png"
- import "os"
- func main() {
- white := color.NRGBA{254, 254, 254, 254}
- image := image.NewNRGBA(image.Rect(0, 0, 100, 100))
- image.SetNRGBA(20, 20, white)
- png.Encode(os.Stdout, image)
- }
Add Comment
Please, Sign In to add comment