From 276c6823dfe5de836c706406abad85339b872697 Mon Sep 17 00:00:00 2001 From: Dipam Sen Date: Wed, 27 Sep 2023 22:25:40 +0530 Subject: [PATCH 1/2] use convenient values --- sketch.js | 57 +++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/sketch.js b/sketch.js index c20d009..6380e8d 100644 --- a/sketch.js +++ b/sketch.js @@ -1,47 +1,46 @@ function setup() { createCanvas(400, 400); - strokeWeight(2.9166); + strokeWeight(11.6); strokeCap(ROUND); strokeJoin(ROUND); } function draw() { background(255); - scale(4); - stroke('#70327E'); - line(25.631, 44.613, 25.631, 34.251); - line(25.631, 34.251, 22.581, 34.251); - line(22.581, 34.251, 22.581, 27.926); - line(22.581, 27.926, 49.61, 27.926); - line(49.61, 27.926, 49.61, 39.409); + stroke("#70327E"); + line(103, 178, 103, 137); + line(103, 137, 90, 137); + line(90, 137, 90, 112); + line(90, 112, 198, 112); + line(198, 112, 198, 158); - stroke('#30C5F3'); - line(57.015, 39.409, 55.198, 27.926); - line(55.198, 27.926, 68.114, 27.926); - line(68.114, 27.926, 66.298, 39.409); + stroke("#30C5F3"); + line(228, 158, 221, 112); + line(221, 112, 272, 112); + line(272, 112, 265, 158); - stroke('#EF63A4'); - line(78.126, 66.499, 72.372, 59.146); - line(72.372, 59.146, 76.229, 48.65); - line(76.229, 48.65, 72.282, 39.409); + stroke("#EF63A4"); + line(313, 266, 289, 237); + line(289, 237, 305, 195); + line(305, 195, 289, 158); noFill(); - stroke('#70327E'); - circle(35.104, 58.745, 13.23 * 2); + stroke("#70327E"); + circle(140, 235, 53 * 2); - stroke('#30C5F3'); - strokeWeight(2.7978); - circle(55.298, 67.558, 4.516 * 2); + stroke("#30C5F3"); + strokeWeight(11.2); + circle(221, 270, 18 * 2); - strokeWeight(2.7735); - circle(68.054, 67.597, 4.477 * 2); + strokeWeight(11.1); + circle(272, 270, 18 * 2); - stroke('#F89E4F'); - strokeWeight(2.9166); - line(66.68, 44.613, 66.68, 53.135); - line(61.656, 44.613, 61.656, 53.135); - line(56.632, 44.613, 56.632, 53.135); + stroke("#F89E4F"); + strokeWeight(11.6); + line(267, 178, 267, 213); + line(247, 178, 247, 213); + line(227, 178, 227, 213); - line(68.005, 59.075, 55.308, 59.075); + line(272, 236, 221, 236); } From 69a5bf66844b1ec608eee9da74782e04920a54da Mon Sep 17 00:00:00 2001 From: Dipam Sen Date: Wed, 27 Sep 2023 22:30:59 +0530 Subject: [PATCH 2/2] move noFill and strokeWeight --- sketch.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sketch.js b/sketch.js index 6380e8d..86b94ef 100644 --- a/sketch.js +++ b/sketch.js @@ -1,13 +1,14 @@ function setup() { createCanvas(400, 400); - strokeWeight(11.6); strokeCap(ROUND); strokeJoin(ROUND); + noFill(); } function draw() { background(255); + strokeWeight(11.6); stroke("#70327E"); line(103, 178, 103, 137); line(103, 137, 90, 137); @@ -25,15 +26,12 @@ function draw() { line(289, 237, 305, 195); line(305, 195, 289, 158); - noFill(); stroke("#70327E"); circle(140, 235, 53 * 2); - stroke("#30C5F3"); strokeWeight(11.2); + stroke("#30C5F3"); circle(221, 270, 18 * 2); - - strokeWeight(11.1); circle(272, 270, 18 * 2); stroke("#F89E4F");