Slide 6
Slide 6 text
Ebitengine ϓνConf #1 6/9
aethiopicuschan 2023/09/22
GIFग़ྗ
img := ebiten.NewImage(100, 100)
img.DrawImage(hoge, op)
q := median.Quantizer(256)
p := color.Palette{image.Transparent}
p = append(p, q.Quantize(make(color.Palette, 0, 255), img)...)
paletted := image.NewPaletted(img.Bounds(), p)
draw.Draw(paletted, paletted.Rect, img, image.Point{0, 0}, draw.Src)
ͱΓ͋͑ͣ image.Paletted Λ͍ͬͯ͘ɻ