draw

package
v0.0.0-...-c131409 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package draw

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShapeFilter

func ShapeFilter(shape string, f Filter, rx string) string

Types

type Filter

type Filter func(m string) string

type Shape

type Shape struct {
	// contains filtered or unexported fields
}

func Circle

func Circle(r int, subtract bool) *Shape

func Dot

func Dot() *Shape

func Heart

func Heart(size int) *Shape

func Hexagon

func Hexagon(r int) *Shape

func NewShape

func NewShape() *Shape

NewScript create a new Script Struct with defaults

func Pentagon

func Pentagon(r int) *Shape

func Pixel

func Pixel() *Shape

func Poligon

func Poligon(r int, s int) *Shape

func Rectangle

func Rectangle(x1, y1, x2, y2 int) *Shape

func Ring

func Ring(radio, outlineWidth int) *Shape

func Square

func Square(w, h int) *Shape

func Star

func Star(r1 int, r2 int, spikes int) *Shape

func Triangle

func Triangle(size int) *Shape

func (Shape) B

func (d Shape) B(args ...int) *Shape

B Bézier

func (Shape) Clip

func (d Shape) Clip(mode int) string

Clip Vector Drawing

func (Shape) Draw

func (d Shape) Draw(mode int) string

Draw Drawing command

func (Shape) Flip

func (d Shape) Flip() *Shape

func (Shape) IClip

func (d Shape) IClip(mode int) string

IClip Inverse Vector Drawing

func (Shape) L

func (d Shape) L(x, y int) *Shape

L Line

func (Shape) M

func (d Shape) M(x, y int) *Shape

M Draw Move

func (Shape) N

func (d Shape) N(x, y int) *Shape

N Draw Move (no closing)

func (Shape) Scale

func (d Shape) Scale(x, y float64) *Shape

func (Shape) String

func (d Shape) String() string

String string

func (Shape) Translate

func (d Shape) Translate(x, y int) *Shape

Jump to

Keyboard shortcuts

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