clip

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT, Unlicense Imports: 10 Imported by: 2 modules, 7 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ellipse

type Ellipse image.Rectangle

func (Ellipse) Op

func (e Ellipse) Op(ops *op.Ops) Op

func (Ellipse) Path

func (e Ellipse) Path(o *op.Ops) PathSpec

func (Ellipse) Push

func (e Ellipse) Push(ops *op.Ops) Stack

type Op

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

func (Op) Push

func (p Op) Push(o *op.Ops) Stack

type Outline

type Outline struct {
	Path PathSpec
}

func (Outline) Op

func (o Outline) Op() Op

type Path

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

func (*Path) Arc

func (p *Path) Arc(f1, f2 f32.Point, angle float32)

func (*Path) ArcTo

func (p *Path) ArcTo(f1, f2 f32.Point, angle float32)

func (*Path) Begin

func (p *Path) Begin(o *op.Ops)

func (*Path) Close

func (p *Path) Close()

func (*Path) Cube

func (p *Path) Cube(ctrl0, ctrl1, to f32.Point)

func (*Path) CubeTo

func (p *Path) CubeTo(ctrl0, ctrl1, to f32.Point)

func (*Path) End

func (p *Path) End() PathSpec

func (*Path) Line

func (p *Path) Line(delta f32.Point)

func (*Path) LineTo

func (p *Path) LineTo(to f32.Point)

func (*Path) Move

func (p *Path) Move(delta f32.Point)

func (*Path) MoveTo

func (p *Path) MoveTo(to f32.Point)

func (*Path) Pos

func (p *Path) Pos() f32.Point

func (*Path) Quad

func (p *Path) Quad(ctrl, to f32.Point)

func (*Path) QuadTo

func (p *Path) QuadTo(ctrl, to f32.Point)

type PathSpec

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

type RRect

type RRect struct {
	Rect image.Rectangle

	SE, SW, NW, NE int
}

func UniformRRect

func UniformRRect(rect image.Rectangle, radius int) RRect

func (RRect) Op

func (rr RRect) Op(ops *op.Ops) Op

func (RRect) Path

func (rr RRect) Path(ops *op.Ops) PathSpec

func (RRect) Push

func (rr RRect) Push(ops *op.Ops) Stack

type Rect

type Rect image.Rectangle

func (Rect) Op

func (r Rect) Op() Op

func (Rect) Path

func (r Rect) Path() PathSpec

func (Rect) Push

func (r Rect) Push(ops *op.Ops) Stack

type Stack

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

func (Stack) Pop

func (s Stack) Pop()

type Stroke

type Stroke struct {
	Path PathSpec

	Width float32
}

func (Stroke) Op

func (s Stroke) Op() Op

Jump to

Keyboard shortcuts

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