Debian Codegraph @

vendor/github.com/xyproto/gfx/playground.go

raw
1 //go:build !tinygo
2 // +build !tinygo
3
4 package gfx
5
6 import "image"
7
8 // Playground displays image on The Go Playground
9 // using the IMAGE: base64 encoded PNG “hack”
10 func Playground(src image.Image) {
11 Log("IMAGE: %s", Base64EncodedPNG(src))
12 }