Type Path

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.

Constructors

NewPath#

func NewPath(width, height float32, commands ...PathCommand) Path

NewPath creates immutable geometry. Width and height define its view box.

Methods

Size#

func (path Path) Size() Size

Size returns the path view box.