tweak to overmask """formula""", updates it for fancy new slider

Former-commit-id: 9ecd7c40e154270e66eb36677f64656cc616cdb0
This commit is contained in:
tim h 2022-11-24 00:02:04 -06:00
parent da95542c34
commit 9a21d4f786
2 changed files with 5 additions and 3 deletions

View file

@ -108,7 +108,9 @@ function applyOvermask(canvas, ctx, px) {
omCtx.arc( omCtx.arc(
(i / 4) % tmpOvermaskCanvas.width, (i / 4) % tmpOvermaskCanvas.width,
Math.floor(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, 0,
2 * Math.PI, 2 * Math.PI,
true true

View file

@ -223,11 +223,11 @@ tools.dream = toolbar.registerTool(
state.ctxmenu.overMaskPxLabel = _toolbar_input.slider( state.ctxmenu.overMaskPxLabel = _toolbar_input.slider(
state, state,
"overMaskPx", "overMaskPx",
"Overmask px (0 to disable):", "Overmask px",
0, 0,
128, 128,
1 1
).label; ).slider;
} }
menu.appendChild(state.ctxmenu.snapToGridLabel); menu.appendChild(state.ctxmenu.snapToGridLabel);