BlendFactor


class BlendFactor


Defines the factors used in blend operations.

Summary

Constants

const Int

The blend factor is the blend constant (Rc, Gc, Bc, Ac).

const Int
Dst = 7

The blend factor is (Rd, Gd, Bd, Ad).

const Int

The blend factor is (Ad, Ad, Ad, Ad).

const Int
One = 2

The blend factor is (1, 1, 1, 1).

const Int

The blend factor is (1-Rc, 1-Gc, 1-Bc, 1-Ac).

const Int

The blend factor is (1-Rd, 1-Gd, 1-Bd, 1-Ad).

const Int

The blend factor is (1-Ad, 1-Ad, 1-Ad, 1-Ad).

const Int

The blend factor is (1-Rs, 1-Gs, 1-Bs, 1-As).

const Int

The blend factor is (1-Rs1, 1-Gs1, 1-Bs1, 1-As1).

const Int

The blend factor is (1-As1, 1-As1, 1-As1, 1-As1).

const Int

The blend factor is (1-As, 1-As, 1-As, 1-As).

const Int
Src = 3

The blend factor is (Rs, Gs, Bs, As).

const Int
Src1 = 14

The blend factor is the second source color (Rs1, Gs1, Bs1, As1).

const Int

The blend factor is (As1, As1, As1, As1).

const Int

The blend factor is (As, As, As, As).

const Int

The blend factor is (f, f, f, 1) where f = min(As, 1 - Ad).

const Int

Indicates that no blend factor is specified.

const Int
Zero = 1

The blend factor is (0, 0, 0, 0).

Public companion functions

String
toString(value: Int)

Constants

Constant

const val Constant = 12: Int

The blend factor is the blend constant (Rc, Gc, Bc, Ac).

Dst

const val Dst = 7: Int

The blend factor is (Rd, Gd, Bd, Ad).

DstAlpha

const val DstAlpha = 9: Int

The blend factor is (Ad, Ad, Ad, Ad).

One

const val One = 2: Int

The blend factor is (1, 1, 1, 1).

OneMinusConstant

const val OneMinusConstant = 13: Int

The blend factor is (1-Rc, 1-Gc, 1-Bc, 1-Ac).

OneMinusDst

const val OneMinusDst = 8: Int

The blend factor is (1-Rd, 1-Gd, 1-Bd, 1-Ad).

OneMinusDstAlpha

const val OneMinusDstAlpha = 10: Int

The blend factor is (1-Ad, 1-Ad, 1-Ad, 1-Ad).

OneMinusSrc

const val OneMinusSrc = 4: Int

The blend factor is (1-Rs, 1-Gs, 1-Bs, 1-As).

OneMinusSrc1

const val OneMinusSrc1 = 15: Int

The blend factor is (1-Rs1, 1-Gs1, 1-Bs1, 1-As1). Requires @see FeatureName.DualSourceBlending.

OneMinusSrc1Alpha

const val OneMinusSrc1Alpha = 17: Int

The blend factor is (1-As1, 1-As1, 1-As1, 1-As1). Requires @see FeatureName.DualSourceBlending.

OneMinusSrcAlpha

const val OneMinusSrcAlpha = 6: Int

The blend factor is (1-As, 1-As, 1-As, 1-As).

Src

const val Src = 3: Int

The blend factor is (Rs, Gs, Bs, As).

Src1

const val Src1 = 14: Int

The blend factor is the second source color (Rs1, Gs1, Bs1, As1). Requires

See also
DualSourceBlending

.

Src1Alpha

const val Src1Alpha = 16: Int

The blend factor is (As1, As1, As1, As1). Requires @see FeatureName.DualSourceBlending.

SrcAlpha

const val SrcAlpha = 5: Int

The blend factor is (As, As, As, As).

SrcAlphaSaturated

const val SrcAlphaSaturated = 11: Int

The blend factor is (f, f, f, 1) where f = min(As, 1 - Ad).

Undefined

const val Undefined = 0: Int

Indicates that no blend factor is specified.

Zero

const val Zero = 1: Int

The blend factor is (0, 0, 0, 0).

Public companion functions

toString

Added in 1.0.0-alpha05
fun toString(value: Int): String