Files
beatglow/draw/text.go
T
2026-10-29 17:29:41 +01:00

16 lines
289 B
Go

package draw
import (
"image/color"
"github.com/BeatGlow/beatglow/draw/font"
)
// Text draws text using the specified font and color.
func Text(dst Image, font *font.Font, color color.Color, x, y int, text string) {
if font == nil {
return
}
font.Print(dst, color, x, y, text)
}