Skip to content

Commit

Permalink
decrease the circle size
Browse files Browse the repository at this point in the history
  • Loading branch information
pr2tik1 committed Oct 7, 2024
1 parent 22973f2 commit 8750bac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let lastTime = "";
let noiseScale = 0.01;

function setup() {
createCanvas(700, 700);
createCanvas(500, 500);
let canvas = document.querySelector('canvas');
canvas.style.borderRadius = '50%';
createParticles();
Expand Down Expand Up @@ -114,11 +114,11 @@ function drawTime() {

function createDigitParticles(currentTime) {
const digitParticles = [];
const startX = width / 4;
const startX = width / 6;

for (let i = 0; i < currentTime.length; i++) {
const digitPattern = digitLookupTable[currentTime[i]];
const targetY = height / 2;
const targetY = height / 1.8;

for (let y = 0; y < 5; y++) {
for (let x = 0; x < 4; x++) {
Expand Down

0 comments on commit 8750bac

Please sign in to comment.