package
Version:
v0.0.0-...-94baa75
Opens a new window with list of versions in this module.
Published: Dec 17, 2014
License: BSD-3-Clause
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package raster is experimental vector drawing for the sprite package.
WARNING: likely to change.
This is an experiment in APIs. Implemented using freetype/raster for now.
Draw is a portable implementation of vector rasterization.
type Circle struct {
Radius geom.Pt
}
A Path is a sequence of curves.
AddCubic adds a cubic segment to the current curve.
AddLine adds a linear segment to the current curve.
AddQuadratic adds a quadratic segment to the current curve.
AddStart starts a new curve at the given point.
TODO: rounded corners (i.e. css border-radius)?
type Shape interface {
Path() Path
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.