mirror of
https://github.com/bspeice/speice.io
synced 2025-07-05 07:44:54 -04:00
Start writing the post
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user