Documentation
¶
Index ¶
- Constants
- Variables
- func CenterDraw(canvas *ebiten.Image, lines []string, clr color.RGBA, scale int)
- func CenterDrawAt(canvas *ebiten.Image, x, y int, lines []string, clr color.RGBA, scale int)
- func DrawAt(canvas *ebiten.Image, x, y int, lines []string, clr color.RGBA, scale int)
- func DrawBoxAt(canvas *ebiten.Image, x, y int, lines []string, fillClr, borderClr color.RGBA, ...)
- func DrawCenteredBoxAt(canvas *ebiten.Image, x, y int, lines []string, fillClr, borderClr color.RGBA, ...)
- func DrawLine(canvas *ebiten.Image, line string, ox, oy int, textColor color.RGBA, scale int)
- func DrawRectBox(canvas *ebiten.Image, rect image.Rectangle, borderOffset int, ...)
- func DrawRightBoxAt(canvas *ebiten.Image, x, y int, lines []string, fillClr, borderClr color.RGBA, ...)
- func MeasureLineWidth(line string, scale int) int
- func RightDrawAt(canvas *ebiten.Image, x, y int, lines []string, clr color.RGBA, scale int)
Constants ¶
View Source
const BoxBorderOffset = 1
View Source
const BoxHorzMargin = 10
View Source
const BoxVertMargin = 3
View Source
const GpBtBottom = '\uE026'
View Source
const GpBtLeft = '\uE029'
View Source
const GpBtRight = '\uE028'
View Source
const GpBtTop = '\uE027'
View Source
const GpShoulderL = '\uE02A'
View Source
const GpShoulderR = '\uE02B'
View Source
const GpShoulders = '\uE02C'
View Source
const GpTriggL = '\uE02D'
View Source
const GpTriggR = '\uE02E'
View Source
const GpTriggers = '\uE02F'
View Source
const HalfSpace = '\u2009' // aka thin space
View Source
const KeyA = '\x06'
View Source
const KeyD = '\x07'
View Source
const KeyI = '\x02'
View Source
const KeyJ = '\x03'
View Source
const KeyL = '\x05'
View Source
const KeyMsgI = '\x10'
View Source
const KeyO = '\x01'
View Source
const KeyP = '\x04'
View Source
const KeyTAB = '\x09'
View Source
const LineHeight = 7
View Source
const LineInterspace = 2
View Source
const Padder = '\u200A' // aka hair space
View Source
const TriangleLeft = '\u2B9C'
View Source
const TriangleLeftWithPad = '\u2B9D'
View Source
const TriangleRight = '\u2B9E'
View Source
const TriangleRightWithPad = '\u2B9F'
Variables ¶
View Source
var BackColor = color.RGBA{20, 20, 20, 255}
View Source
var FrontColor = color.RGBA{255, 255, 255, 255}
Functions ¶
func CenterDraw ¶
for long text and so on
func CenterDrawAt ¶
func DrawCenteredBoxAt ¶
func DrawRectBox ¶
func DrawRightBoxAt ¶
func MeasureLineWidth ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.