Start writing the post

This commit is contained in:
2025-03-08 18:14:00 -05:00
parent 2d810fe20f
commit 59a3e455f0
3 changed files with 73 additions and 5 deletions

View File

@ -25,12 +25,11 @@ export function camera(
y * Math.cos(rotate),
]
// Scale is applied to pixel
// coordinates. Shift by half
// Scale transforms IFS coordinates
// to pixel coordinates. Shift by half
// the image width and height
// to compensate for the
// IFS coordinates being symmetric
// around the origin
// to compensate for IFS coordinates
// being symmetric around the origin
return [
Math.floor(x * scale + width / 2),
Math.floor(y * scale + height / 2)