16 lines
348 B
Go
16 lines
348 B
Go
package render
|
|
|
|
func (r *Render) drawSixels() {
|
|
for _, sixel := range r.buffer.GetVisibleSixels() {
|
|
op := &ebiten.DrawImageOptions{}
|
|
op.GeoM.Translate(
|
|
float64(int(sixel.Sixel.X)*r.font.CellSize.X),
|
|
float64(sixel.ViewLineOffset*r.font.CellSize.Y),
|
|
)
|
|
r.frame.DrawImage(
|
|
ebiten.NewImageFromImage(sixel.Sixel.Image),
|
|
op,
|
|
)
|
|
}
|
|
}
|