command

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer = internal.Buffer

func New

func New(capacity int) (buffer *Buffer)

New creates a reusable 2D command buffer.

type Op

type Op = internal.Op
const (
	ClearRect Op = iota + 1
	Save
	Restore
	Translate
	Scale
	Rotate
	Transform
	SetTransform
	ResetTransform
	BeginPath
	ClosePath
	MoveTo
	LineTo
	BezierCurveTo
	QuadraticCurveTo
	Rect
	RoundRect
	Arc
	ArcTo
	Ellipse
	FillStyle
	StrokeStyle
	LineWidth
	GlobalAlpha
	Font
	Fill
	Stroke
	FillRect
	StrokeRect
	FillText
	StrokeText
	DefinePath
	FillPath
	StrokePath
	SelectTarget
	DrawImage
	Direction
	Filter
	FontKerning
	FontStretch
	FontVariantCaps
	GlobalCompositeOperation
	ImageSmoothingEnabled
	ImageSmoothingQuality
	LetterSpacing
	LineCap
	LineDashOffset
	LineJoin
	MiterLimit
	ShadowBlur
	ShadowColor
	ShadowOffsetX
	ShadowOffsetY
	TextAlign
	TextBaseline
	TextRendering
	WordSpacing
	SetLineDash
	Clip
	ClipPath
	Reset
	FillRule
	FillPathRule
	FillStyleResource
	StrokeStyleResource
	PutImageData
)

Jump to

Keyboard shortcuts

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