vector

package
v0.0.0-...-1f426e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Path

type Path struct {
	// contains filtered or unexported fields
}

func NewPath

func NewPath() *Path

func (*Path) Circle

func (p *Path) Circle(center la.Vec2, radius float64)

func (*Path) DashSector

func (p *Path) DashSector(
	center la.Vec2, cntDash, totalDash uint, radius, startAngle, ratio float64,
)

angle in radians

func (*Path) Draw

func (p *Path) Draw(dst draw.Image, style *Style)

func (*Path) DrawEx

func (p *Path) DrawEx(dst draw.Image, mat canvas.Matrix, style *Style)

func (*Path) Line

func (p *Path) Line(from la.Vec2, to la.Vec2)

func (*Path) LineTo

func (p *Path) LineTo(point la.Vec2)

func (*Path) MoveTo

func (p *Path) MoveTo(point la.Vec2)

func (*Path) Sector

func (p *Path) Sector(center la.Vec2, radius, startAngle, lenAngle float64)

angle in radians

type Style

type Style struct {
	// contains filtered or unexported fields
}

func NewStyle

func NewStyle() *Style

func (*Style) SetColorSpace

func (s *Style) SetColorSpace(cs canvas.ColorSpace)

func (*Style) SetDashes

func (s *Style) SetDashes(offset float64, dashes ...float64)

func (*Style) SetFillColor

func (s *Style) SetFillColor(clr color.Color)

func (*Style) SetStrokeCapper

func (s *Style) SetStrokeCapper(capper canvas.Capper)

func (*Style) SetStrokeColor

func (s *Style) SetStrokeColor(clr color.Color)

func (*Style) SetStrokeJoiner

func (s *Style) SetStrokeJoiner(joiner canvas.Joiner)

func (*Style) SetStrokeWidth

func (s *Style) SetStrokeWidth(width float64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL