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

Method SVG

primitive/rectangle.go:109–113  ·  view source on GitHub ↗
(attrs string)

Source from the content-addressed store, hash-verified

107}
108
109func (r *RotatedRectangle) SVG(attrs string) string {
110 return fmt.Sprintf(
111 "<g transform=\"translate(%d %d) rotate(%d) scale(%d %d)\"><rect %s x=\"-0.5\" y=\"-0.5\" width=\"1\" height=\"1\" /></g>",
112 r.X, r.Y, r.Angle, r.Sx, r.Sy, attrs)
113}
114
115func (r *RotatedRectangle) Copy() Shape {
116 a := *r

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected