op

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CompositeAll         = internal.CompositeAll
	CompositeBlendOnly   = internal.CompositeBlendOnly
	CompositeBlendAndDst = internal.CompositeBlendAndDst
	CompositeBlendAndSrc = internal.CompositeBlendAndSrc
)
View Source
const (
	Add = LinearDodge
)

Aliases for BlendModes defined above.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlendCompositing

type BlendCompositing = internal.BlendCompositing

type BlendMode

type BlendMode int
const (
	ColorBurn BlendMode = iota
	ColorDodge
	Darken
	Difference
	Divide
	Exclusion
	HardLight
	HardMix
	Lighten
	LinearBurn
	LinearDodge
	LinearLight
	Multiply
	Overlay
	PinLight
	Screen
	SoftLight
	Subtract
	VividLight
)

type BlendOp

type BlendOp struct {
	Mode        BlendMode
	Compositing BlendCompositing
}

func (BlendOp) ApplyNRGBA

func (o BlendOp) ApplyNRGBA(pixIter core.PixelIterator, calc core.PixCalculator[*image.NRGBA]) *image.NRGBA

func (BlendOp) ApplyRGBA

func (o BlendOp) ApplyRGBA(pixIter core.PixelIterator, calc core.PixCalculator[*image.RGBA]) *image.RGBA

func (BlendOp) IsValid

func (o BlendOp) IsValid() bool

type CompositeMode

type CompositeMode int
const (
	Clear CompositeMode = iota
	Source
	SourceOver
	SourceIn
	SourceOut
	SourceAtop
	Destination
	DestinationOver
	DestinationIn
	DestinationOut
	DestinationAtop
	Xor
)

type CompositeOp

type CompositeOp struct {
	Mode CompositeMode
}

func (CompositeOp) ApplyNRGBA

func (CompositeOp) ApplyRGBA

func (CompositeOp) IsValid

func (o CompositeOp) IsValid() bool

Jump to

Keyboard shortcuts

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