Discover Packages
github.com/Sendipad/draw2d
draw2dkit
package
Version:
v0.0.0-...-d16e308
Opens a new window with list of versions in this module.
Published: Nov 30, 2015
License: BSD-2-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Jump to ...
README
Documentation
Overview
Index
Constants
Variables
Functions
Circle(path, cx, cy, radius)
Ellipse(path, cx, cy, rx, ry)
Rectangle(path, x1, y1, x2, y2)
RoundedRectangle(path, x1, y1, x2, y2, arcWidth, arcHeight)
Types
Source Files
README
README
¶
draw2d/draw2dkit
Util package that help drawing common vectorial draw.
Expand ▾
Collapse ▴
Documentation
¶
Package draw2dkit provides helpers to draw common figures using a Path
func Circle(path draw2d.PathBuilder, cx, cy, radius float64)
func Ellipse(path draw2d.PathBuilder, cx, cy, rx, ry float64)
func Rectangle(path draw2d.PathBuilder, x1, y1, x2, y2 float64)
func RoundedRectangle(path draw2d.PathBuilder, x1, y1, x2, y2, arcWidth, arcHeight float64)
Circle draws a circle using a path with center (cx,cy) and radius
Ellipse draws an ellipse using a path with center (cx,cy) and radius (rx,ry)
Rectangle draws a rectangle using a path between (x1,y1) and (x2,y2)
RoundedRectangle draws a rectangle using a path between (x1,y1) and (x2,y2)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.