Remove bmIntersectMask (its just mask)
This commit is contained in:
parent
b34f4260de
commit
cd5f699774
|
@ -32,7 +32,6 @@ type
|
||||||
bmMask ## Special blend mode that is used for masking
|
bmMask ## Special blend mode that is used for masking
|
||||||
bmOverwrite ## Special blend mode that just copies pixels
|
bmOverwrite ## Special blend mode that just copies pixels
|
||||||
bmSubtractMask ## Inverse mask
|
bmSubtractMask ## Inverse mask
|
||||||
bmIntersectMask
|
|
||||||
bmExcludeMask
|
bmExcludeMask
|
||||||
|
|
||||||
Blender* = proc(backdrop, source: ColorRGBX): ColorRGBX
|
Blender* = proc(backdrop, source: ColorRGBX): ColorRGBX
|
||||||
|
@ -477,7 +476,6 @@ proc blender*(blendMode: BlendMode): Blender =
|
||||||
of bmMask: blendMask
|
of bmMask: blendMask
|
||||||
of bmOverwrite: blendOverwrite
|
of bmOverwrite: blendOverwrite
|
||||||
of bmSubtractMask: blendSubtractMask
|
of bmSubtractMask: blendSubtractMask
|
||||||
of bmIntersectMask: blendIntersectMask
|
|
||||||
of bmExcludeMask: blendExcludeMask
|
of bmExcludeMask: blendExcludeMask
|
||||||
|
|
||||||
proc maskNormal(backdrop, source: uint8): uint8 =
|
proc maskNormal(backdrop, source: uint8): uint8 =
|
||||||
|
@ -507,7 +505,6 @@ proc masker*(blendMode: BlendMode): Masker =
|
||||||
of bmMask: maskMask
|
of bmMask: maskMask
|
||||||
of bmOverwrite: maskOverwrite
|
of bmOverwrite: maskOverwrite
|
||||||
of bmSubtractMask: maskSubtract
|
of bmSubtractMask: maskSubtract
|
||||||
of bmIntersectMask: maskIntersect
|
|
||||||
of bmExcludeMask: maskExclude
|
of bmExcludeMask: maskExclude
|
||||||
else:
|
else:
|
||||||
raise newException(PixieError, "No masker for " & $blendMode)
|
raise newException(PixieError, "No masker for " & $blendMode)
|
||||||
|
|
Loading…
Reference in a new issue