Guest User

Untitled

a guest
Sep 15th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.27 KB | None | 0 0
  1. package main
  2.  
  3. import "image"
  4. import "image/color"
  5. import "image/png"
  6. import "os"
  7.  
  8. func main() {
  9.     white := color.NRGBA{254, 254, 254, 254}
  10.     image := image.NewNRGBA(image.Rect(0, 0, 100, 100))
  11.     image.SetNRGBA(20, 20, white)
  12.         png.Encode(os.Stdout, image)
  13. }
Add Comment
Please, Sign In to add comment