testdraw

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package testdraw provides helpers for tests that use the draw package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustBorder

func MustBorder(c *canvas.Canvas, border image.Rectangle, opts ...draw.BorderOption)

MustBorder draws border on the canvas or panics.

func MustBrailleCircle

func MustBrailleCircle(bc *braille.Canvas, mid image.Point, radius int, opts ...draw.BrailleCircleOption)

MustBrailleCircle draws the braille circle or panics.

func MustBrailleLine

func MustBrailleLine(bc *braille.Canvas, start, end image.Point, opts ...draw.BrailleLineOption)

MustBrailleLine draws the braille line or panics.

func MustHVLines

func MustHVLines(c *canvas.Canvas, lines []draw.HVLine, opts ...draw.HVLineOption)

MustHVLines draws the vertical / horizontal lines or panics.

func MustRectangle

func MustRectangle(c *canvas.Canvas, r image.Rectangle, opts ...draw.RectangleOption)

MustRectangle draws the rectangle on the canvas or panics.

func MustResizeNeeded

func MustResizeNeeded(cvs *canvas.Canvas)

MustResizeNeeded draws the character or panics.

func MustText

func MustText(c *canvas.Canvas, text string, start image.Point, opts ...draw.TextOption)

MustText draws the text on the canvas or panics.

func MustVerticalText

func MustVerticalText(c *canvas.Canvas, text string, start image.Point, opts ...draw.VerticalTextOption)

MustVerticalText draws the vertical text on the canvas or panics.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL