Upgrade to Pro — share decks privately, control downloads, hide ads and more …

EbitengineでGUIツール作ってみた

aethiopicuschan
September 22, 2023

 EbitengineでGUIツール作ってみた

1. 簡潔に自己紹介
2. Odoriの紹介
3. ebiten.Imageを使ってGIFアニメを作成するには
4. 応用デモ

https://github.com/aethiopicuschan/odori

aethiopicuschan

September 22, 2023
Tweet

More Decks by aethiopicuschan

Other Decks in Programming

Transcript

  1. 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 Λ΍͍ͬͯ͘ɻ
  2. Ebitengine ϓνConf #1 7/9 aethiopicuschan 2023/09/22 GIFग़ྗ outGif := &gif.GIF{}

    outGif.Image = append(outGif.Image, paletted) outGif.Delay = append(outGif.Delay, 100) outGif.Disposal = append(outGif.Disposal, gif.DisposalBackground) ࡞ͬͨ paletted Λ gif.GIF ʹ٧ΊΔɻ Delay͸ 1/100ඵͳͷͰɺ࣮ࡍʹ͸ TPS Λݩʹม׵ͨ͠Γ͢Δɻ Disposal͸ DisposalBackground ʹ͓͚ͯ͠͹ͱΓ͋͑ͣ҆৺Ͱ͖Δɻ
  3. Ebitengine ϓνConf #1 9/9 aethiopicuschan 2023/09/22 GIFग़ྗ Ԡ༻ ebiten.ImageΛݩʹGIFΞχϝ͕࡞ΕΔ͜ͱ͕Θ͔ͬͨɻ =

    ήʔϜʹ࿥ըػೳΛ෇͚Δ͜ͱ͕Ͱ͖Δʂ (ߟ͑ͳ͚Ε͹͍͚ͳ͍͜ͱ͕͍ͩͿ૿͑Δ͕…) σϞΛ΍Γ·͢ɻ