tweak to overmask """formula""", updates it for fancy new slider
Former-commit-id: 9ecd7c40e154270e66eb36677f64656cc616cdb0
This commit is contained in:
parent
da95542c34
commit
9a21d4f786
2 changed files with 5 additions and 3 deletions
|
@ -108,7 +108,9 @@ function applyOvermask(canvas, ctx, px) {
|
|||
omCtx.arc(
|
||||
(i / 4) % tmpOvermaskCanvas.width,
|
||||
Math.floor(i / 4 / tmpOvermaskCanvas.width),
|
||||
scaleFactor + rando, // was 4 * sf + rando, too big
|
||||
scaleFactor +
|
||||
rando +
|
||||
(rando > scaleFactor ? rando / scaleFactor : scaleFactor / rando), // was 4 * sf + rando, too big, but i think i want it more ... random
|
||||
0,
|
||||
2 * Math.PI,
|
||||
true
|
||||
|
|
|
@ -223,11 +223,11 @@ tools.dream = toolbar.registerTool(
|
|||
state.ctxmenu.overMaskPxLabel = _toolbar_input.slider(
|
||||
state,
|
||||
"overMaskPx",
|
||||
"Overmask px (0 to disable):",
|
||||
"Overmask px",
|
||||
0,
|
||||
128,
|
||||
1
|
||||
).label;
|
||||
).slider;
|
||||
}
|
||||
|
||||
menu.appendChild(state.ctxmenu.snapToGridLabel);
|
||||
|
|
Loading…
Reference in a new issue