f
This commit is contained in:
parent
5e536c5d67
commit
2807cce15f
1 changed files with 3 additions and 1 deletions
|
@ -291,7 +291,9 @@ proc getRgbaSmooth*(image: Image, x, y: float32): ColorRGBA =
|
||||||
|
|
||||||
lerp(bottomMix, topMix, diffY)
|
lerp(bottomMix, topMix, diffY)
|
||||||
|
|
||||||
proc drawCorrect*(a: Image, b: Image | Mask, mat = mat3(), blendMode = bmMask) =
|
proc drawCorrect(
|
||||||
|
a: Image, b: Image | Mask, mat = mat3(), blendMode = bmNormal
|
||||||
|
) =
|
||||||
## Draws one image onto another using matrix with color blending.
|
## Draws one image onto another using matrix with color blending.
|
||||||
when type(b) is Image:
|
when type(b) is Image:
|
||||||
let blender = blendMode.blender()
|
let blender = blendMode.blender()
|
||||||
|
|
Loading…
Reference in a new issue