Skip to content

Commit 4e1cc33

Browse files
committed
changes frame and color calculations calculation
1 parent 263ccd7 commit 4e1cc33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

codePen/codePen12/codePen12.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const theLastExperience = noWorkers => {
141141
}
142142
}
143143
update() {
144-
if (++this.frame % Math.round(20 / ts) === 0) this.dir = -this.dir;
144+
if (++this.frame % Math.round(100 / ts) === 0) this.dir = -this.dir; //updated from 20 to 100 in math.round, slower anim speed
145145
if (this === pointer.dancerDrag && this.size < 16 && this.frame > 600) {
146146
pointer.dancerDrag = null;
147147
dancers.push(
@@ -389,8 +389,8 @@ const theLastExperience = noWorkers => {
389389
for (let i = 0; i < 6; i++) {
390390
dancers.push(
391391
new Robot(
392-
i * 360 / 7,
393-
80,
392+
i * 360 / 6, //updated from 7 to 6, more vibrant blue and purple
393+
30, //updated from 80 to 30, darker front pieces of the robots
394394
Math.sqrt(Math.min(canvas.width, canvas.height)) / 6,
395395
(i + 2) * canvas.width / 9,
396396
canvas.height * 0.5 - 100,

0 commit comments

Comments
 (0)