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 ¶
Types ¶
type Command ¶
type Command interface {
Engrave(p Program)
}
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).
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) Command
type Rasterizer ¶
type Rasterizer struct {
// contains filtered or unexported fields
}
func NewRasterizer ¶
func (*Rasterizer) Line ¶
func (r *Rasterizer) Line(p image.Point)
func (*Rasterizer) Move ¶
func (r *Rasterizer) Move(p image.Point)
func (*Rasterizer) Rasterize ¶
func (r *Rasterizer) Rasterize()
Click to show internal directories.
Click to hide internal directories.