Documentation ¶
Overview ¶
Package testdraw provides helpers for tests that use the draw package.
Index ¶
- func MustBorder(c *canvas.Canvas, border image.Rectangle, opts ...draw.BorderOption)
- func MustBrailleCircle(bc *braille.Canvas, mid image.Point, radius int, ...)
- func MustBrailleLine(bc *braille.Canvas, start, end image.Point, opts ...draw.BrailleLineOption)
- func MustHVLines(c *canvas.Canvas, lines []draw.HVLine, opts ...draw.HVLineOption)
- func MustRectangle(c *canvas.Canvas, r image.Rectangle, opts ...draw.RectangleOption)
- func MustResizeNeeded(cvs *canvas.Canvas)
- func MustText(c *canvas.Canvas, text string, start image.Point, opts ...draw.TextOption)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustBorder ¶
MustBorder draws border on the canvas or panics.
func MustBrailleCircle ¶ added in v0.5.0
func MustBrailleCircle(bc *braille.Canvas, mid image.Point, radius int, opts ...draw.BrailleCircleOption)
MustBrailleCircle draws the braille circle or panics.
func MustBrailleLine ¶ added in v0.3.0
MustBrailleLine draws the braille line or panics.
func MustHVLines ¶ added in v0.3.0
MustHVLines draws the vertical / horizontal lines or panics.
func MustRectangle ¶
MustRectangle draws the rectangle on the canvas or panics.
func MustResizeNeeded ¶ added in v0.6.0
MustResizeNeeded draws the character or panics.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.