brush opacity
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
parent
45f4412ab8
commit
3caacdb803
1 changed files with 6 additions and 1 deletions
|
@ -25,7 +25,12 @@ const _color_brush_erase_callback = (evn, state, ctx) => {
|
||||||
ctx.save();
|
ctx.save();
|
||||||
ctx.strokeStyle = "black";
|
ctx.strokeStyle = "black";
|
||||||
|
|
||||||
ctx.filter = "blur(" + state.brushBlur + "px)";
|
ctx.filter =
|
||||||
|
"blur(" +
|
||||||
|
state.brushBlur +
|
||||||
|
"px) opacity(" +
|
||||||
|
state.brushOpacity * 100 +
|
||||||
|
"%)";
|
||||||
ctx.lineWidth = state.brushSize;
|
ctx.lineWidth = state.brushSize;
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
ctx.moveTo(
|
ctx.moveTo(
|
||||||
|
|
Loading…
Reference in a new issue