Versions in this module Expand all Collapse all v0 v0.0.6 Jan 21, 2023 v0.0.5 Jan 21, 2023 v0.0.4 Jan 21, 2023 v0.0.3 Jan 21, 2023 v0.0.2 Nov 24, 2022 v0.0.1 May 25, 2019 Changes in this version + const XCenter + const XLeft + const XRight + const YBottom + const YCenter + const YTop + var BottomCenter = fonts.BottomCenter + var BottomLeft = fonts.BottomLeft + var BottomRight = fonts.BottomRight + var Center = fonts.Center + var CenterLeft = fonts.CenterLeft + var CenterRight = fonts.CenterRight + var TopCenter = fonts.TopCenter + var TopLeft = fonts.TopLeft + var TopRight = fonts.TopRight + type Aperture struct + Shape Shape + Size float64 + func (a *Aperture) Aperture() *Aperture + func (a *Aperture) ID() string + func (a *Aperture) MBB() MBB + func (a *Aperture) WriteGerber(w io.Writer, apertureIndex int) error + type ArcT struct + Center Pt + EndAngle float64 + Radius float64 + Shape Shape + StartAngle float64 + Thickness float64 + XScale float64 + YScale float64 + func Arc(center Pt, radius float64, shape Shape, ...) *ArcT + func (a *ArcT) Aperture() *Aperture + func (a *ArcT) MBB() MBB + func (a *ArcT) WriteGerber(w io.Writer, apertureIndex int) error + type CircleT struct + func Circle(center Pt, thickness float64) *CircleT + func (c *CircleT) Aperture() *Aperture + func (c *CircleT) MBB() MBB + func (c *CircleT) WriteGerber(w io.Writer, apertureIndex int) error + type Gerber struct + FilenamePrefix string + Layers []*Layer + func New(filenamePrefix string) *Gerber + func (g *Gerber) BottomCopper() *Layer + func (g *Gerber) BottomSilkscreen() *Layer + func (g *Gerber) BottomSolderMask() *Layer + func (g *Gerber) Drill() *Layer + func (g *Gerber) LayerN(n int) *Layer + func (g *Gerber) MBB() MBB + func (g *Gerber) Outline() *Layer + func (g *Gerber) TopCopper() *Layer + func (g *Gerber) TopSilkscreen() *Layer + func (g *Gerber) TopSolderMask() *Layer + func (g *Gerber) WriteGerber() error + type Layer struct + Apertures []*Aperture + Filename string + Primitives []Primitive + func (l *Layer) Add(primitives ...Primitive) + func (l *Layer) MBB() MBB + func (l *Layer) WriteGerber(w io.Writer) error + type LineT struct + P1 Pt + P2 Pt + Shape Shape + Thickness float64 + func Line(x1, y1, x2, y2 float64, shape Shape, thickness float64) *LineT + func (l *LineT) Aperture() *Aperture + func (l *LineT) MBB() MBB + func (l *LineT) WriteGerber(w io.Writer, apertureIndex int) error + type MBB = vec2.Rect + type PolygonT struct + Offset Pt + Points []Pt + func Polygon(offset Pt, filled bool, points []Pt, thickness float64) *PolygonT + func (p *PolygonT) Aperture() *Aperture + func (p *PolygonT) MBB() MBB + func (p *PolygonT) WriteGerber(w io.Writer, apertureIndex int) error + type Primitive interface + Aperture func() *Aperture + MBB func() MBB + WriteGerber func(w io.Writer, apertureIndex int) error + type Pt = vec2.T + func Point(x, y float64) Pt + type Shape string + const CircleShape + const RectShape + type TextOpts = fonts.TextOpts + type TextT struct + Render *fonts.Render + func Text(x, y, xScale float64, message, fontName string, pts float64, opts *TextOpts) *TextT + func TextBox(mbb MBB, xScale float64, message, fontName string, opts *TextOpts) *TextT + func (t *TextT) Aperture() *Aperture + func (t *TextT) Height() float64 + func (t *TextT) MBB() MBB + func (t *TextT) Width() float64 + func (t *TextT) WriteGerber(w io.Writer, apertureIndex int) error