Merge pull request 'Tune Goldberg Paint defaults: depth 5, 500 iters, start in draw mode' (#3) from mikael-lovqvists-claude-agent/websperiments:defaults-and-draw-mode into main
Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
@@ -111,8 +111,8 @@
|
|||||||
<h3>Mesh</h3>
|
<h3>Mesh</h3>
|
||||||
<div class="param" style="margin-top:6px">
|
<div class="param" style="margin-top:6px">
|
||||||
<label>Depth</label>
|
<label>Depth</label>
|
||||||
<input type="range" id="depth" min="1" max="5" value="4">
|
<input type="range" id="depth" min="1" max="5" value="5">
|
||||||
<span class="val" id="depth-val">4</span>
|
<span class="val" id="depth-val">5</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@
|
|||||||
<h3>Relaxation</h3>
|
<h3>Relaxation</h3>
|
||||||
<div class="param" style="margin-top:6px">
|
<div class="param" style="margin-top:6px">
|
||||||
<label>Iterations</label>
|
<label>Iterations</label>
|
||||||
<input type="number" id="iters" value="32" min="0" step="50">
|
<input type="number" id="iters" value="500" min="0" step="50">
|
||||||
</div>
|
</div>
|
||||||
<div class="param">
|
<div class="param">
|
||||||
<label>α edge</label>
|
<label>α edge</label>
|
||||||
|
|||||||
@@ -61,9 +61,6 @@ function set_stats(geo, stage_name, ms) {
|
|||||||
if (s.vertices !== undefined) { lines += ` Verts: ${s.vertices}`; }
|
if (s.vertices !== undefined) { lines += ` Verts: ${s.vertices}`; }
|
||||||
if (s.pentagons !== undefined) { lines += ` (${s.pentagons} pent)`; }
|
if (s.pentagons !== undefined) { lines += ` (${s.pentagons} pent)`; }
|
||||||
lines += '\n';
|
lines += '\n';
|
||||||
if (s.worst_shape !== null) {
|
|
||||||
lines += `Worst shape_r: ${s.worst_shape.toFixed(4)}\n`;
|
|
||||||
}
|
|
||||||
lines += `Build: ${ms}ms`;
|
lines += `Build: ${ms}ms`;
|
||||||
stats_el.textContent = lines;
|
stats_el.textContent = lines;
|
||||||
}
|
}
|
||||||
@@ -1179,5 +1176,7 @@ window.addEventListener('keydown', e => {
|
|||||||
// Boot
|
// Boot
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
paint.enabled = true;
|
||||||
|
update_paint_buttons();
|
||||||
resize();
|
resize();
|
||||||
build();
|
build();
|
||||||
|
|||||||
Reference in New Issue
Block a user