MCPcopy Create free account
hub / github.com/fogleman/primitive / SVG

Method SVG

primitive/triangle.go:38–42  ·  view source on GitHub ↗
(attrs string)

Source from the content-addressed store, hash-verified

36}
37
38func (t *Triangle) SVG(attrs string) string {
39 return fmt.Sprintf(
40 "<polygon %s points=\"%d,%d %d,%d %d,%d\" />",
41 attrs, t.X1, t.Y1, t.X2, t.Y2, t.X3, t.Y3)
42}
43
44func (t *Triangle) Copy() Shape {
45 a := *t

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected