BlendMode

data class BlendMode(val factors: AGBlending, val name: String? = null)

Determines how pixels should be blended. The most common blend modes are: NORMAL (normal mix) and ADD (additive blending) along with MULTIPLY and others.

https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendFuncSeparate

// color(RGB) = (sourceColor * srcRGB) + (destinationColor * dstRGB)
// color(A) = (sourceAlpha * srcAlpha) + (destinationAlpha * dstAlpha)

Constructors

Link copied to clipboard
constructor(factors: AGBlending, name: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val name: String? = null
Link copied to clipboard

Functions

Link copied to clipboard
fun apply(src: RGBA, dst: RGBA): RGBA
fun apply(src: RGBAf, dst: RGBAf, out: RGBAf = RGBAf()): RGBAf
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String