Documentation
¶
Overview ¶
package engrave transforms shapes such as text and QR codes into line and move commands for use with an engraver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ManhattanDist ¶ added in v1.3.0
Types ¶
type ConstantStringer ¶ added in v0.10.0
type ConstantStringer struct {
// contains filtered or unexported fields
}
ConstantStringer can engrave text in a timing insensitive way.
func NewConstantStringer ¶ added in v0.10.0
func NewConstantStringer(face *vector.Face, em int, shortest, longest int) *ConstantStringer
func (*ConstantStringer) String ¶ added in v0.10.0
func (c *ConstantStringer) String(txt string) Plan
type Params ¶ added in v1.3.0
type Params struct {
// The StrokeWidth measured in machine units.
StrokeWidth int
// A Millimeter measured in machine units.
Millimeter int
}
Params decribe the physical characteristics of an engraver.
type Plan ¶ added in v1.3.0
Plan is an iterator over the commands of an engraving.
func ConstantQR ¶ added in v0.10.0
ConstantQR is like QR that engraves the QR code in a pattern independent of content, except for the QR code version (size).
Click to show internal directories.
Click to hide internal directories.