We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb67abf commit 9a7723aCopy full SHA for 9a7723a
src/useCases/Home/components/Hero/assets/effect/index.ts
@@ -55,8 +55,8 @@ export class Effect {
55
const radian = p.pow(1.06, theta)
56
const noise = p.noise(theta, offset.y, offset.z) + 1
57
58
- const x = (spacing + radian) * p.cos(theta) * noise
59
- const y = (spacing + radian) * p.sin(theta) * noise
+ const x = p.round((spacing + radian) * p.cos(theta) * noise, 2)
+ const y = p.round((spacing + radian) * p.sin(theta) * noise, 2)
60
61
// 画面外の場合は描画を終了する
62
if (x < -p.width && p.height < y) break
0 commit comments