pull/2/head
Andreas Gysin 2021-03-07 21:15:14 +01:00
rodzic d7cc0e3d37
commit e7486fcf44
1 zmienionych plików z 0 dodań i 2 usunięć

Wyświetl plik

@ -45,11 +45,9 @@ export function pre(context, cursor, buffer) {
for (let j=sy; j<ey; j++) {
for (let i=sx; i<ex; i++) {
const x = (p.x - i)
const y = (p.y - j) / a
const l = 1 - length({x, y}) / RADIUS
const idx = i + cols * j
buffer[idx].value = Math.max(buffer[idx].value, l)
}