draw2dkit

package
v0.0.0-...-675e82c Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2019 License: BSD-2-Clause Imports: 2 Imported by: 0

README

draw2d/draw2dkit

Coverage GoDoc

Util package that help drawing common vectorial draw.

Documentation

Overview

Package draw2dkit provides helpers to draw common figures using a Path

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Circle

func Circle(path draw2d.PathBuilder, cx, cy, radius float64)

Circle draws a circle using a path with center (cx,cy) and radius

func Ellipse

func Ellipse(path draw2d.PathBuilder, cx, cy, rx, ry float64)

Ellipse draws an ellipse using a path with center (cx,cy) and radius (rx,ry)

func Rectangle

func Rectangle(path draw2d.PathBuilder, x1, y1, x2, y2 float64)

Rectangle draws a rectangle using a path between (x1,y1) and (x2,y2)

func RoundedRectangle

func RoundedRectangle(path draw2d.PathBuilder, x1, y1, x2, y2, arcWidth, arcHeight float64)

RoundedRectangle draws a rectangle using a path between (x1,y1) and (x2,y2)

Types

This section is empty.

Jump to

Keyboard shortcuts

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