shortcut
This commit is contained in:
parent
c765a3323c
commit
6fd7df9b23
1 changed files with 4 additions and 0 deletions
|
@ -116,6 +116,10 @@ proc applyOpacity*(mask: Mask, opacity: float32) =
|
||||||
## Multiplies the values of the mask by opacity.
|
## Multiplies the values of the mask by opacity.
|
||||||
let opacity = round(255 * opacity).uint16
|
let opacity = round(255 * opacity).uint16
|
||||||
|
|
||||||
|
if opacity == 0:
|
||||||
|
mask.fill(0)
|
||||||
|
return
|
||||||
|
|
||||||
var i: int
|
var i: int
|
||||||
when defined(amd64) and not defined(pixieNoSimd):
|
when defined(amd64) and not defined(pixieNoSimd):
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in a new issue