MCPcopy
hub / github.com/fogleman/primitive / Shape

Interface Shape

primitive/shape.go:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import "github.com/fogleman/gg"
4
5type Shape interface {
6 Rasterize() []Scanline
7 Copy() Shape
8 Mutate()
9 Draw(dc *gg.Context, scale float64)
10 SVG(attrs string) string
11}
12
13type ShapeType int
14

Callers 12

AddMethod · 0.65
fillPathFunction · 0.65
strokePathFunction · 0.65
EnergyMethod · 0.65
CopyMethod · 0.65
DoMoveMethod · 0.65
FramesMethod · 0.65
AddMethod · 0.65
SaveGIFFunction · 0.65
imageToRGBAFunction · 0.65
uniformRGBAFunction · 0.65
SVGMethod · 0.65

Implementers 7

Quadraticprimitive/quadratic.go
Polygonprimitive/polygon.go
Triangleprimitive/triangle.go
Ellipseprimitive/ellipse.go
RotatedEllipseprimitive/ellipse.go
Rectangleprimitive/rectangle.go
RotatedRectangleprimitive/rectangle.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…