pixie/blends

    Dark Mode
Search:
Group by:

Blending modes.

Types

BlendMode = enum
  bmNormal, bmDarken, bmMultiply, bmColorBurn, bmLighten, bmScreen,
  bmColorDodge, bmOverlay, bmSoftLight, bmHardLight, bmDifference, bmExclusion,
  bmHue, bmSaturation, bmColor, bmLuminosity, bmMask, ## Special blend mode that is used for masking
  bmOverwrite,              ## Special blend mode that just copies pixels
  bmSubtractMask,           ## Inverse mask
  bmExcludeMask
  Source Edit
Blender = proc (backdrop, source: ColorRGBX): ColorRGBX {...}{.raises: [].}
Function signature returned by blender.   Source Edit
Masker = proc (backdrop, source: uint8): uint8 {...}{.raises: [].}
Function signature returned by masker.   Source Edit
BlenderSimd = proc (blackdrop, source: M128i): M128i {...}{.raises: [].}
Function signature returned by blenderSimd.   Source Edit
MaskerSimd = proc (blackdrop, source: M128i): M128i {...}{.raises: [].}
Function signature returned by maskerSimd.   Source Edit

Procs

proc blendAlpha(backdrop, source: uint8): uint8 {...}{.inline, raises: [], tags: [].}
Blends alphas of backdrop, source.   Source Edit
proc blender(blendMode: BlendMode): Blender {...}{.raises: [], tags: [].}
  Source Edit
proc masker(blendMode: BlendMode): Masker {...}{.raises: [PixieError], tags: [].}
  Source Edit
proc blenderSimd(blendMode: BlendMode): BlenderSimd {...}{.raises: [PixieError],
    tags: [].}
  Source Edit
proc hasSimdBlender(blendMode: BlendMode): bool {...}{.inline, raises: [], tags: [].}
Is there a blend function for a given blend mode with SIMD support?   Source Edit
proc maskerSimd(blendMode: BlendMode): MaskerSimd {...}{.raises: [PixieError],
    tags: [].}
  Source Edit
proc hasSimdMasker(blendMode: BlendMode): bool {...}{.inline, raises: [], tags: [].}
Is there a blend masking function with SIMD support?   Source Edit