testdraw

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2018 License: Apache-2.0 Imports: 4 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 MustRectangle

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

MustRectangle draws the rectangle on the canvas 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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