MCPcopy Create free account
hub / github.com/tdewolff/canvas / String

Method String

path.go:50–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (fillRule FillRule) String() string {
51 switch fillRule {
52 case NonZero:
53 return "NonZero"
54 case EvenOdd:
55 return "EvenOdd"
56 case Positive:
57 return "Positive"
58 case Negative:
59 return "Negative"
60 }
61 return fmt.Sprintf("FillRule(%d)", fillRule)
62}
63
64// Command values as powers of 2 so that the float64 representation is exact
65// TODO: make CloseCmd a LineTo + CloseCmd, where CloseCmd is only a command value, no coordinates

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected