MCPcopy Create free account
hub / github.com/fogleman/nes / DrawText

Function DrawText

ui/font.go:82–87  ·  view source on GitHub ↗
(dst draw.Image, x, y int, text string, c color.Color)

Source from the content-addressed store, hash-verified

80}
81
82func DrawText(dst draw.Image, x, y int, text string, c color.Color) {
83 for i := range text {
84 DrawCharacter(dst, x, y, text[i], c)
85 x += 16
86 }
87}
88
89var fontData = []byte{
90 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, 0x00, 0x00, 0x00, 0x0D,

Callers 1

DrawCenteredTextFunction · 0.85

Calls 1

DrawCharacterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…