NewPath#
func NewPath(width, height float32, commands ...PathCommand) PathNewPath creates immutable geometry. Width and height define its view box.
API 文档由 Go 源码生成,内容为英文。
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.