blend

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package blend provides color blending operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blend

func Blend(src, dst gg.RGBA, mode Mode) gg.RGBA

Blend blends two colors using the specified mode.

Types

type Mode

type Mode int

Mode represents a blending mode.

const (
	// ModeSourceOver is the default alpha blending mode.
	ModeSourceOver Mode = iota
	// ModeSourceCopy replaces the destination with the source.
	ModeSourceCopy
	// ModeDestinationOver draws destination over source.
	ModeDestinationOver
	// ModeDestinationIn keeps destination where source is opaque.
	ModeDestinationIn
	// ModeDestinationOut keeps destination where source is transparent.
	ModeDestinationOut
)

Jump to

Keyboard shortcuts

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