16 lines
289 B
Go
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)
|
|
}
|