paint

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT, Unlicense Imports: 9 Imported by: 0

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