Skip to content

Commit

Permalink
updating design
Browse files Browse the repository at this point in the history
  • Loading branch information
audgeviolin07 committed Sep 17, 2023
1 parent 4e61d7d commit ae492f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/landing_page.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
top: 0; left: 0;
width: 100%;
height: 100%;
background: #2c306d;
background: #1e3648;
}
6 changes: 3 additions & 3 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Particle{
draw(){
ctx.beginPath();
ctx.arc(this.x, this.y, this.size, 0, Math.PI*2, false);
ctx.fillStyle = '#ffff';
ctx.fillStyle = '#d5d9be';
ctx.fill();
}

Expand Down Expand Up @@ -77,7 +77,7 @@ function init(){
let y = (Math.random() * ((innerHeight - size * 2)- (size * 2)) + size * 2);
let directionX = (Math.random() * 5) - 2.5;
let directionY = (Math.random() * 5) - 2.5;
let color = '#8C5523';
let color = '#aebabb';

particlesArray.push(new Particle(x, y, directionX, directionY, size, color));
}
Expand All @@ -93,7 +93,7 @@ function connect(){
(particlesArray[a].y - particlesArray[b].y));
if (distance < (canvas.width/7) * (canvas.height/7)){
opacityValue = 1 - (distance/20000);
ctx.strokeStyle = 'rgba(140,85,31,1' + opacityValue + ')';
ctx.strokeStyle = 'rgba(42,78,92,' + opacityValue + ')';
ctx.lineWidth = 1;
ctx.beginPath();
ctx.moveTo(particlesArray[a].x, particlesArray[a].y);
Expand Down

0 comments on commit ae492f7

Please sign in to comment.