Skip to content

Commit 77151e6

Browse files
authored
Update index.html
1 parent 4fa46ff commit 77151e6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ <h2>📝 Editor</h2>
121121
const min=Math.min, max=Math.max, random=Math.random;
122122
const step = (edge, x) => x >= edge ? 1.0 : 0.0;
123123
const clamp = (v, mn, mx) => Math.max(mn, Math.min(mx, v));
124+
const clip_min = (x) => Math.min(x, 0);
125+
const clip_max = (x) => Math.max(x, 0);
124126
function primes(n) {
125127
const result = [];
126128
for (let i = 2; i <= n; i++) {

0 commit comments

Comments
 (0)