stroke

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT, Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArcTransform

func ArcTransform(p, f1, f2 f32.Point, angle float32) (transform f32.Affine2D, segments int)

Types

type QuadSegment

type QuadSegment struct {
	From, Ctrl, To f32.Point
}

func SplitCubic

func SplitCubic(from, ctrl0, ctrl1, to f32.Point, quads []QuadSegment) []QuadSegment

func (QuadSegment) Transform

func (q QuadSegment) Transform(t f32.Affine2D) QuadSegment

type StrokeQuad

type StrokeQuad struct {
	Contour uint32
	Quad    QuadSegment
}

type StrokeQuads

type StrokeQuads []StrokeQuad

func StrokePathCommands

func StrokePathCommands(style StrokeStyle, scene []byte) StrokeQuads

type StrokeStyle

type StrokeStyle struct {
	Width float32
}

Jump to

Keyboard shortcuts

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