We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b572bb7 commit f968b2bCopy full SHA for f968b2b
app/components/HeroSection.vue
@@ -17,7 +17,7 @@ interface Velocity {
17
18
const canvasRef = ref<HTMLCanvasElement | null>(null);
19
const RenderSettings = {
20
- radiusFactor: 0.000189,
+ radiusFactor: 0.15,
21
thickness: 1,
22
color: "#fff",
23
maxVelocity: 0.08,
@@ -67,7 +67,7 @@ onMounted(async () => {
67
pArr.push({
68
x: Math.random() * window.innerWidth,
69
y: Math.random() * window.innerHeight,
70
- radius: Math.random() * RenderSettings.radiusFactor * (window.innerWidth * window.innerHeight),
+ radius: (Math.random()+ 0.01) * RenderSettings.radiusFactor * Math.min(window.innerWidth, window.innerHeight),
71
})
72
vArr.push({
73
x: (-Math.random() + Math.random()) * RenderSettings.maxVelocity,
0 commit comments