paint

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: 9 Imported by: 2 modules, 4 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

func Fill

func Fill(ops *op.Ops, c color.NRGBA)

func FillShape

func FillShape(ops *op.Ops, c color.NRGBA, shape clip.Op)

Types

type ColorOp

type ColorOp struct {
	Color color.NRGBA
}

func (ColorOp) Add

func (c ColorOp) Add(o *op.Ops)

type ImageFilter

type ImageFilter byte
const (
	FilterLinear ImageFilter = iota

	FilterNearest
)

type ImageOp

type ImageOp struct {
	Filter ImageFilter
	// contains filtered or unexported fields
}

func NewImageOp

func NewImageOp(src image.Image) ImageOp

func (ImageOp) Add

func (i ImageOp) Add(o *op.Ops)

func (ImageOp) Size

func (i ImageOp) Size() image.Point

type LinearGradientOp

type LinearGradientOp struct {
	Stop1  f32.Point
	Color1 color.NRGBA
	Stop2  f32.Point
	Color2 color.NRGBA
}

func (LinearGradientOp) Add

func (c LinearGradientOp) Add(o *op.Ops)

type OpacityStack

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

func PushOpacity

func PushOpacity(o *op.Ops, opacity float32) OpacityStack

func (OpacityStack) Pop

func (t OpacityStack) Pop()

type PaintOp

type PaintOp struct{}

func (PaintOp) Add

func (d PaintOp) Add(o *op.Ops)

Jump to

Keyboard shortcuts

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