NewPath#
func NewPath(width, height float32, commands ...PathCommand) PathNewPath creates immutable geometry. Width and height define its view box.
type Path struct {
// contains filtered or unexported fields
}Path is immutable vector geometry in a fixed view box. NewPath copies the commands once; painting the path does not mutate or allocate it.
NewPath#func NewPath(width, height float32, commands ...PathCommand) PathNewPath creates immutable geometry. Width and height define its view box.
Size#func (path Path) Size() SizeSize returns the path view box.