19 lines
291 B
Go
19 lines
291 B
Go
//go:build ignore
|
|
|
|
package main
|
|
|
|
import (
|
|
"image"
|
|
"image/color"
|
|
"image/jpeg"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
img := image.NewRGBA(image.Rect(0, 0, 8, 4))
|
|
img.Set(0, 0, color.RGBA{R: 255, A: 255})
|
|
if err := jpeg.Encode(os.Stdout, img, &jpeg.Options{Quality: 80}); err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|