Documentation ¶
Overview ¶
Package raster contains some convenience functions for creating "golang.org/x/image/vector" paths and rendering them into images.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawAt ¶
DrawAt places the r into an image aligning (x,y) of r with the (0,0) coordinate of the image.
func LineTo ¶
func LineTo(r *vector.Rasterizer, capped bool, oX, oY, nX, nY, width float64)
LineTo renders a line segment from (oX,oY) to (nX,nY) with the specified perpendicular width. The capped value adds rounded end-caps to the line of radius half of the width (as approximated with Bezier curves).
func PointAt ¶
func PointAt(r *vector.Rasterizer, x, y, width float64)
PointAt renders an approximate "circle" via 4 cubic Bezier curves describing the arc of the 4 quadrants.
func SquareAt ¶
func SquareAt(r *vector.Rasterizer, x, y, width float64)
SquareAt renders a width by width square centered at (x,y).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.