enum Gsk::BlendMode

Overview

The blend modes available for render nodes.

The implementation of each blend mode is deferred to the rendering pipeline.

See https://www.w3.org/TR/compositing-1/#blending for more information on blending and blend modes.

Defined in:

lib/gi-crystal/src/auto/gsk-4.0/gsk.cr

Enum Members

Default = 0_u32

The default blend mode, which specifies no blending

Multiply = 1_u32

The source color is multiplied by the destination and replaces the destination

Screen = 2_u32

Multiplies the complements of the destination and source color values, then complements the result.

Overlay = 3_u32

Multiplies or screens the colors, depending on the destination color value. This is the inverse of hard-list

Darken = 4_u32

Selects the darker of the destination and source colors

Lighten = 5_u32

Selects the lighter of the destination and source colors

ColorDodge = 6_u32

Brightens the destination color to reflect the source color

ColorBurn = 7_u32

Darkens the destination color to reflect the source color

HardLight = 8_u32

Multiplies or screens the colors, depending on the source color value

SoftLight = 9_u32

Darkens or lightens the colors, depending on the source color value

Difference = 10_u32

Subtracts the darker of the two constituent colors from the lighter color

Exclusion = 11_u32

Produces an effect similar to that of the difference mode but lower in contrast

Color = 12_u32

Creates a color with the hue and saturation of the source color and the luminosity of the destination color

Hue = 13_u32

Creates a color with the hue of the source color and the saturation and luminosity of the destination color

Saturation = 14_u32

Creates a color with the saturation of the source color and the hue and luminosity of the destination color

Luminosity = 15_u32

Creates a color with the luminosity of the source color and the hue and saturation of the destination color

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


[View source]

Instance Method Detail

def color? #

[View source]
def color_burn? #

[View source]
def color_dodge? #

[View source]
def darken? #

[View source]
def default? #

[View source]
def difference? #

[View source]
def exclusion? #

[View source]
def hard_light? #

[View source]
def hue? #

[View source]
def lighten? #

[View source]
def luminosity? #

[View source]
def multiply? #

[View source]
def overlay? #

[View source]
def saturation? #

[View source]
def screen? #

[View source]
def soft_light? #

[View source]