From a27300dcb5859f278f49500589bd218c5b11c6b1 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 17:54:09 +0530 Subject: [PATCH 01/41] Rename 0001_2D_Curves.js to CodeTrain/0001_2D_Curves.js --- 0001_2D_Curves.js => CodeTrain/0001_2D_Curves.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0001_2D_Curves.js => CodeTrain/0001_2D_Curves.js (100%) diff --git a/0001_2D_Curves.js b/CodeTrain/0001_2D_Curves.js similarity index 100% rename from 0001_2D_Curves.js rename to CodeTrain/0001_2D_Curves.js From 44bb5e25789a385b25ddd8067b4a4737c96af936 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 17:54:46 +0530 Subject: [PATCH 02/41] Rename 0002_2D_Curves_A.js to CodeTrain/0002_2D_Curves_A.js --- 0002_2D_Curves_A.js => CodeTrain/0002_2D_Curves_A.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0002_2D_Curves_A.js => CodeTrain/0002_2D_Curves_A.js (100%) diff --git a/0002_2D_Curves_A.js b/CodeTrain/0002_2D_Curves_A.js similarity index 100% rename from 0002_2D_Curves_A.js rename to CodeTrain/0002_2D_Curves_A.js From 2a46ee4f6e84c8d79ebe5ab0e4717c33b2fb4a46 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 17:56:59 +0530 Subject: [PATCH 03/41] Rename 0001_functionAlpha.html to P5Edit/0001_functionAlpha.html --- 0001_functionAlpha.html => P5Edit/0001_functionAlpha.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename 0001_functionAlpha.html => P5Edit/0001_functionAlpha.html (92%) diff --git a/0001_functionAlpha.html b/P5Edit/0001_functionAlpha.html similarity index 92% rename from 0001_functionAlpha.html rename to P5Edit/0001_functionAlpha.html index deb7ef0..a2fbef8 100644 --- a/0001_functionAlpha.html +++ b/P5Edit/0001_functionAlpha.html @@ -17,4 +17,4 @@ - \ No newline at end of file + From 7032123efb15605434a4080a02ade0c186b8a7c4 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 17:57:24 +0530 Subject: [PATCH 04/41] Rename 0001_functionAlpha.js to P5Edit/0001_functionAlpha.js --- 0001_functionAlpha.js => P5Edit/0001_functionAlpha.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0001_functionAlpha.js => P5Edit/0001_functionAlpha.js (100%) diff --git a/0001_functionAlpha.js b/P5Edit/0001_functionAlpha.js similarity index 100% rename from 0001_functionAlpha.js rename to P5Edit/0001_functionAlpha.js From 602f2149cb51ee0530fb2720920070cc6436b1ed Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:52:26 +0530 Subject: [PATCH 05/41] Rename 0002_functionBrightness.js to P5Edit/0002_functionBrightness.js --- 0002_functionBrightness.js => P5Edit/0002_functionBrightness.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename 0002_functionBrightness.js => P5Edit/0002_functionBrightness.js (95%) diff --git a/0002_functionBrightness.js b/P5Edit/0002_functionBrightness.js similarity index 95% rename from 0002_functionBrightness.js rename to P5Edit/0002_functionBrightness.js index fdac10a..e03039c 100644 --- a/0002_functionBrightness.js +++ b/P5Edit/0002_functionBrightness.js @@ -29,4 +29,4 @@ function draw() { fill(value2); rect(135, 20, 35, 360); -} \ No newline at end of file +} From 5ade12063715869fefaaf9aab62d55bf6dae8f9c Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:52:51 +0530 Subject: [PATCH 06/41] Rename 0003_functionColor.js to P5Edit/0003_functionColor.js --- 0003_functionColor.js => P5Edit/0003_functionColor.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0003_functionColor.js => P5Edit/0003_functionColor.js (100%) diff --git a/0003_functionColor.js b/P5Edit/0003_functionColor.js similarity index 100% rename from 0003_functionColor.js rename to P5Edit/0003_functionColor.js From 995f06968c59f19900101cdd0652c84ed357ab05 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:53:14 +0530 Subject: [PATCH 07/41] Rename 0004_functionGreenHue.js to P5Edit/0004_functionGreenHue.js --- 0004_functionGreenHue.js => P5Edit/0004_functionGreenHue.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0004_functionGreenHue.js => P5Edit/0004_functionGreenHue.js (100%) diff --git a/0004_functionGreenHue.js b/P5Edit/0004_functionGreenHue.js similarity index 100% rename from 0004_functionGreenHue.js rename to P5Edit/0004_functionGreenHue.js From 42070d0ba92ca5bfd1d221a759a28d8738009421 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:53:37 +0530 Subject: [PATCH 08/41] Rename 0005_functionLerpcolorLightness.js to P5Edit/0005_functionLerpcolorLightness.js --- .../0005_functionLerpcolorLightness.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0005_functionLerpcolorLightness.js => P5Edit/0005_functionLerpcolorLightness.js (100%) diff --git a/0005_functionLerpcolorLightness.js b/P5Edit/0005_functionLerpcolorLightness.js similarity index 100% rename from 0005_functionLerpcolorLightness.js rename to P5Edit/0005_functionLerpcolorLightness.js From a093f44088c59200ed5f0e4ff579e31e931b6859 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:54:26 +0530 Subject: [PATCH 09/41] Rename 0006_functionRedSaturation.js to P5Edit/0006_functionRedSaturation.js --- .../0006_functionRedSaturation.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0006_functionRedSaturation.js => P5Edit/0006_functionRedSaturation.js (100%) diff --git a/0006_functionRedSaturation.js b/P5Edit/0006_functionRedSaturation.js similarity index 100% rename from 0006_functionRedSaturation.js rename to P5Edit/0006_functionRedSaturation.js From 190e2f9c4808fbfd77974ffbd165b24a456716a5 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:54:44 +0530 Subject: [PATCH 10/41] Rename 0007_functionClearColorMode.js to P5Edit/0007_functionClearColorMode.js --- .../0007_functionClearColorMode.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0007_functionClearColorMode.js => P5Edit/0007_functionClearColorMode.js (100%) diff --git a/0007_functionClearColorMode.js b/P5Edit/0007_functionClearColorMode.js similarity index 100% rename from 0007_functionClearColorMode.js rename to P5Edit/0007_functionClearColorMode.js From 77121b2279b1b5088652ea24b52beb919168597f Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:54:58 +0530 Subject: [PATCH 11/41] Rename 0008_functionFillNoFill.js to P5Edit/0008_functionFillNoFill.js --- 0008_functionFillNoFill.js => P5Edit/0008_functionFillNoFill.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0008_functionFillNoFill.js => P5Edit/0008_functionFillNoFill.js (100%) diff --git a/0008_functionFillNoFill.js b/P5Edit/0008_functionFillNoFill.js similarity index 100% rename from 0008_functionFillNoFill.js rename to P5Edit/0008_functionFillNoFill.js From 687c8d0b6a21c018d5c5c7e2d51e6d4adfc73835 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:55:15 +0530 Subject: [PATCH 12/41] Rename 0009_functionErase01.js to P5Edit/0009_functionErase01.js --- 0009_functionErase01.js => P5Edit/0009_functionErase01.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename 0009_functionErase01.js => P5Edit/0009_functionErase01.js (93%) diff --git a/0009_functionErase01.js b/P5Edit/0009_functionErase01.js similarity index 93% rename from 0009_functionErase01.js rename to P5Edit/0009_functionErase01.js index 86268d0..4c02d8c 100644 --- a/0009_functionErase01.js +++ b/P5Edit/0009_functionErase01.js @@ -33,4 +33,4 @@ function draw() { noErase(); -} \ No newline at end of file +} From 2e3a88b259f3bfce762e81bbea739b5b1cd7b483 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:55:29 +0530 Subject: [PATCH 13/41] Rename 0009_functionErase02.js to P5Edit/0009_functionErase02.js --- 0009_functionErase02.js => P5Edit/0009_functionErase02.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename 0009_functionErase02.js => P5Edit/0009_functionErase02.js (95%) diff --git a/0009_functionErase02.js b/P5Edit/0009_functionErase02.js similarity index 95% rename from 0009_functionErase02.js rename to P5Edit/0009_functionErase02.js index 24717ff..9339ad8 100644 --- a/0009_functionErase02.js +++ b/P5Edit/0009_functionErase02.js @@ -23,4 +23,4 @@ function draw() { torus(15, 5); noErase(); -} \ No newline at end of file +} From 8222a471408f039e5b45413eba8e4411c3df896a Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:55:43 +0530 Subject: [PATCH 14/41] Rename 0010_functionNoErase.js to P5Edit/0010_functionNoErase.js --- 0010_functionNoErase.js => P5Edit/0010_functionNoErase.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0010_functionNoErase.js => P5Edit/0010_functionNoErase.js (100%) diff --git a/0010_functionNoErase.js b/P5Edit/0010_functionNoErase.js similarity index 100% rename from 0010_functionNoErase.js rename to P5Edit/0010_functionNoErase.js From 534d02f8970d0a5b13d811b8dc9a47b3f416bf38 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:56:01 +0530 Subject: [PATCH 15/41] Rename 0011_functionArc01.js to P5Edit/0011_functionArc01.js --- 0011_functionArc01.js => P5Edit/0011_functionArc01.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0011_functionArc01.js => P5Edit/0011_functionArc01.js (100%) diff --git a/0011_functionArc01.js b/P5Edit/0011_functionArc01.js similarity index 100% rename from 0011_functionArc01.js rename to P5Edit/0011_functionArc01.js From 1ccbe0d7958523fc7953687bd401c8b6ec4fc17b Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:56:16 +0530 Subject: [PATCH 16/41] Rename 0011_functionArc02.js to P5Edit/0011_functionArc02.js --- 0011_functionArc02.js => P5Edit/0011_functionArc02.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0011_functionArc02.js => P5Edit/0011_functionArc02.js (100%) diff --git a/0011_functionArc02.js b/P5Edit/0011_functionArc02.js similarity index 100% rename from 0011_functionArc02.js rename to P5Edit/0011_functionArc02.js From beca4662282d4bc02c8a731fab6ac668d328c358 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:56:31 +0530 Subject: [PATCH 17/41] Rename 0012_functionCircleEllipse.js to P5Edit/0012_functionCircleEllipse.js --- .../0012_functionCircleEllipse.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0012_functionCircleEllipse.js => P5Edit/0012_functionCircleEllipse.js (100%) diff --git a/0012_functionCircleEllipse.js b/P5Edit/0012_functionCircleEllipse.js similarity index 100% rename from 0012_functionCircleEllipse.js rename to P5Edit/0012_functionCircleEllipse.js From 5a4f6292b5eabdd6b6658e48d60bbaa02601ec66 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:56:49 +0530 Subject: [PATCH 18/41] Rename 0013_functionLinePoint.js to P5Edit/0013_functionLinePoint.js --- 0013_functionLinePoint.js => P5Edit/0013_functionLinePoint.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0013_functionLinePoint.js => P5Edit/0013_functionLinePoint.js (100%) diff --git a/0013_functionLinePoint.js b/P5Edit/0013_functionLinePoint.js similarity index 100% rename from 0013_functionLinePoint.js rename to P5Edit/0013_functionLinePoint.js From 7d5f4406d5703ac453a774f9bb5acbc98da8b63e Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:57:10 +0530 Subject: [PATCH 19/41] Rename 0014_functionQuadRect.js to P5Edit/0014_functionQuadRect.js --- 0014_functionQuadRect.js => P5Edit/0014_functionQuadRect.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0014_functionQuadRect.js => P5Edit/0014_functionQuadRect.js (100%) diff --git a/0014_functionQuadRect.js b/P5Edit/0014_functionQuadRect.js similarity index 100% rename from 0014_functionQuadRect.js rename to P5Edit/0014_functionQuadRect.js From 40ae820eebec8c6c34145d0cfac7e832118de3b0 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:57:42 +0530 Subject: [PATCH 20/41] Rename 0015_functionSquareTriangle.js to P5Edit/0015_functionSquareTriangle.js --- .../0015_functionSquareTriangle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename 0015_functionSquareTriangle.js => P5Edit/0015_functionSquareTriangle.js (96%) diff --git a/0015_functionSquareTriangle.js b/P5Edit/0015_functionSquareTriangle.js similarity index 96% rename from 0015_functionSquareTriangle.js rename to P5Edit/0015_functionSquareTriangle.js index dd0b27d..59a843f 100644 --- a/0015_functionSquareTriangle.js +++ b/P5Edit/0015_functionSquareTriangle.js @@ -20,4 +20,4 @@ function draw() { triangle(430, 75, 458, 20, 486, 75); -} \ No newline at end of file +} From b50a9059cfdef97b569845ad9663a82ac40f639d Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:57:59 +0530 Subject: [PATCH 21/41] Rename 0016_functionEllipseModeNoSmooth.js to P5Edit/0016_functionEllipseModeNoSmooth.js --- .../0016_functionEllipseModeNoSmooth.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0016_functionEllipseModeNoSmooth.js => P5Edit/0016_functionEllipseModeNoSmooth.js (100%) diff --git a/0016_functionEllipseModeNoSmooth.js b/P5Edit/0016_functionEllipseModeNoSmooth.js similarity index 100% rename from 0016_functionEllipseModeNoSmooth.js rename to P5Edit/0016_functionEllipseModeNoSmooth.js From dd4dc7f40df279fc29e124a3b9a03582e7adf019 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:58:17 +0530 Subject: [PATCH 22/41] Rename 0017_functionRectmode.js to P5Edit/0017_functionRectmode.js --- 0017_functionRectmode.js => P5Edit/0017_functionRectmode.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0017_functionRectmode.js => P5Edit/0017_functionRectmode.js (100%) diff --git a/0017_functionRectmode.js b/P5Edit/0017_functionRectmode.js similarity index 100% rename from 0017_functionRectmode.js rename to P5Edit/0017_functionRectmode.js From 7591c4c8f80511f32f6a32b58c19047569b40433 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:58:33 +0530 Subject: [PATCH 23/41] Rename 0018_functionStrokeCapJoinWeight.js to P5Edit/0018_functionStrokeCapJoinWeight.js --- .../0018_functionStrokeCapJoinWeight.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0018_functionStrokeCapJoinWeight.js => P5Edit/0018_functionStrokeCapJoinWeight.js (100%) diff --git a/0018_functionStrokeCapJoinWeight.js b/P5Edit/0018_functionStrokeCapJoinWeight.js similarity index 100% rename from 0018_functionStrokeCapJoinWeight.js rename to P5Edit/0018_functionStrokeCapJoinWeight.js From 5039ddf39cfcb3a2cdc05a3cf5221883dbd4e952 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:58:50 +0530 Subject: [PATCH 24/41] Rename 0019_functionBezierBezierDetail.js to P5Edit/0019_functionBezierBezierDetail.js --- .../0019_functionBezierBezierDetail.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0019_functionBezierBezierDetail.js => P5Edit/0019_functionBezierBezierDetail.js (100%) diff --git a/0019_functionBezierBezierDetail.js b/P5Edit/0019_functionBezierBezierDetail.js similarity index 100% rename from 0019_functionBezierBezierDetail.js rename to P5Edit/0019_functionBezierBezierDetail.js From 9056e301cc77d7e5a27b6674197c12780e2f6c4b Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:59:06 +0530 Subject: [PATCH 25/41] Rename 0020_functionBezierPoint.js to P5Edit/0020_functionBezierPoint.js --- 0020_functionBezierPoint.js => P5Edit/0020_functionBezierPoint.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 0020_functionBezierPoint.js => P5Edit/0020_functionBezierPoint.js (100%) diff --git a/0020_functionBezierPoint.js b/P5Edit/0020_functionBezierPoint.js similarity index 100% rename from 0020_functionBezierPoint.js rename to P5Edit/0020_functionBezierPoint.js From b44170366a680fa02b565488069f938e0e88c0ba Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Mon, 6 Jun 2022 09:49:11 +0530 Subject: [PATCH 26/41] Create RectMode.js --- CodeTrain/RectMode.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 CodeTrain/RectMode.js diff --git a/CodeTrain/RectMode.js b/CodeTrain/RectMode.js new file mode 100644 index 0000000..c3ce12f --- /dev/null +++ b/CodeTrain/RectMode.js @@ -0,0 +1,28 @@ +https://editor.p5js.org/mathisudar2007/full/GMZETh4A6 + + +function setup() { + createCanvas(400, 400); +} + +function draw() { + background(220, 0, 220); + + rectMode(CORNER); + fill(255); + rect(25, 25, 50, 50); // Draw white rectangle using CORNER mode + + rectMode(CORNERS); + fill(100); + rect(25, 25, 50, 50); // Draw gray rectangle using CORNERS mode + + rectMode(RADIUS); + fill(255); + rect(200, 50, 30, 30); // Draw white rectangle using RADIUS mode + + rectMode(CENTER); + fill(100); + rect(200, 200, 300, 100); // Draw gray rectangle using CENTER mode + + +} From 6b16950b3cba5ae87ec527bb45d7f7c8d55da981 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Mon, 6 Jun 2022 09:49:35 +0530 Subject: [PATCH 27/41] Rename RectMode.js to 0003_RectMode.js --- CodeTrain/{RectMode.js => 0003_RectMode.js} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename CodeTrain/{RectMode.js => 0003_RectMode.js} (100%) diff --git a/CodeTrain/RectMode.js b/CodeTrain/0003_RectMode.js similarity index 100% rename from CodeTrain/RectMode.js rename to CodeTrain/0003_RectMode.js From c93ef9415aad5cb96f32cea712c3866cc1dca6d9 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Mon, 6 Jun 2022 09:50:46 +0530 Subject: [PATCH 28/41] Create 0004_EllipseMode.js --- CodeTrain/0004_EllipseMode.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 CodeTrain/0004_EllipseMode.js diff --git a/CodeTrain/0004_EllipseMode.js b/CodeTrain/0004_EllipseMode.js new file mode 100644 index 0000000..d6fd2bf --- /dev/null +++ b/CodeTrain/0004_EllipseMode.js @@ -0,0 +1,26 @@ +https://editor.p5js.org/mathisudar2007/full/jU1ry9Ft4 + + +function setup() { + createCanvas(400, 400); +} + +function draw() { + background(220); + + // Example showing RADIUS and CENTER ellipsemode with 2 overlaying ellipses + ellipseMode(RADIUS); + fill(255); + ellipse(50, 50, 30, 30); // Outer white ellipse + ellipseMode(CENTER); + fill(100); + ellipse(50, 50, 30, 30); // Inner gray ellipse + + // Example showing CORNER and CORNERS ellipseMode with 2 overlaying ellipses + ellipseMode(CORNER); + fill(255); + ellipse(100, 100, 50, 50); // Outer white ellipse + ellipseMode(CORNERS); + fill(100); + ellipse(100, 50, 150, 100); // Inner gray ellipse +} From a8eb70b0d63a864a00bdd477d8ac86f96d744f3e Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Mon, 6 Jun 2022 09:52:06 +0530 Subject: [PATCH 29/41] Create 0005_ColorSettings.js --- CodeTrain/0005_ColorSettings.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 CodeTrain/0005_ColorSettings.js diff --git a/CodeTrain/0005_ColorSettings.js b/CodeTrain/0005_ColorSettings.js new file mode 100644 index 0000000..323040b --- /dev/null +++ b/CodeTrain/0005_ColorSettings.js @@ -0,0 +1,21 @@ +https://editor.p5js.org/mathisudar2007/full/gp_TEaUlR + +function setup() { + createCanvas(400, 400); +} + +function draw() { + background(220); + + rectMode(CENTER); + fill(0,0,255); + stroke(0,255,0); + rect(200,150,150,150); + + fill(255,0,0,150); + stroke(255); + strokeWeight(8) + noStroke(); + ellipse(150,250,100,75) + +} From b9294021540b01d348bc1acebd86b9587194582d Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Mon, 6 Jun 2022 09:54:02 +0530 Subject: [PATCH 30/41] Create 0006_AnimateCircle.js --- CodeTrain/0006_AnimateCircle.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 CodeTrain/0006_AnimateCircle.js diff --git a/CodeTrain/0006_AnimateCircle.js b/CodeTrain/0006_AnimateCircle.js new file mode 100644 index 0000000..1674149 --- /dev/null +++ b/CodeTrain/0006_AnimateCircle.js @@ -0,0 +1,20 @@ +https://editor.p5js.org/mathisudar2007/sketches/4r0AnesqF + + +function setup() { + createCanvas(400, 400); + background(0,255,0); +} + +function draw() { + + // background(0); + noStroke(); + fill(255); + circle(mouseX,mouseY,20); + +} + +function mousePressed(){ + background(0); +} From e0a8b9c1da07fb1023bac6f322599e6ea0254b60 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Mon, 6 Jun 2022 14:06:57 +0530 Subject: [PATCH 31/41] Create 0007_AnimateCircle_B.js --- CodeTrain/0007_AnimateCircle_B.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 CodeTrain/0007_AnimateCircle_B.js diff --git a/CodeTrain/0007_AnimateCircle_B.js b/CodeTrain/0007_AnimateCircle_B.js new file mode 100644 index 0000000..bcc4c55 --- /dev/null +++ b/CodeTrain/0007_AnimateCircle_B.js @@ -0,0 +1,21 @@ +https://editor.p5js.org/mathisudar2007/full/n4ieObVQZh + +let circleX = 100; + +function setup() { + createCanvas(400, 400); +} + +function draw() { + background(0); + + fill(255); + circle(circleX,200,40); + + circleX = circleX+5; + +} + +function mousePressed(){ + circleX = 0; +} From 585aeb799c7cc756d75c9458d04707fdbd640d89 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Mon, 6 Jun 2022 14:09:20 +0530 Subject: [PATCH 32/41] Create 0008_AnimationRandom_A.js --- CodeTrain/0008_AnimationRandom_A.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 CodeTrain/0008_AnimationRandom_A.js diff --git a/CodeTrain/0008_AnimationRandom_A.js b/CodeTrain/0008_AnimationRandom_A.js new file mode 100644 index 0000000..2cb7451 --- /dev/null +++ b/CodeTrain/0008_AnimationRandom_A.js @@ -0,0 +1,25 @@ +https://editor.p5js.org/mathisudar2007/full/A_jDuca2q + + +let lineWidth; +let recXsize; + +function setup() { + createCanvas(400, 400); + background(0); + +} + +function draw() { + + + lineWidth = random(3,10); + recXsize = random(100,200); + + fill(0,255,0); + stroke(0,0,255); + strokeWeight(lineWidth); + rectMode(CENTER); + rect(200,200,recXsize); + +} From c515ff22d2f31303987dc1fbf8ca990356477eea Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Mon, 6 Jun 2022 14:10:27 +0530 Subject: [PATCH 33/41] Create 0009_Animation_Random_B.js --- CodeTrain/0009_Animation_Random_B.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 CodeTrain/0009_Animation_Random_B.js diff --git a/CodeTrain/0009_Animation_Random_B.js b/CodeTrain/0009_Animation_Random_B.js new file mode 100644 index 0000000..d3bf880 --- /dev/null +++ b/CodeTrain/0009_Animation_Random_B.js @@ -0,0 +1,28 @@ +https://editor.p5js.org/mathisudar2007/full/Mw2zJwdgv + + +let x,y,r,g,b; + +function setup() { + createCanvas(windowWidth, windowHeight); + background(0); +} + +function draw() { + + r = random(255); + g = random(255); + b = random(255); + x= random(width); + y = random(height); + + fill(r,g,b,100); + noStroke(); + + circle(x,y,30); + +} + +function mousePressed(){ + background(255,255,255); +} From 03547f77e8738477cda8abc2e8ed64f83c9e48f0 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Mon, 6 Jun 2022 14:12:10 +0530 Subject: [PATCH 34/41] Create 0010_Animation_Random_C.js --- CodeTrain/0010_Animation_Random_C.js | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 CodeTrain/0010_Animation_Random_C.js diff --git a/CodeTrain/0010_Animation_Random_C.js b/CodeTrain/0010_Animation_Random_C.js new file mode 100644 index 0000000..5de7203 --- /dev/null +++ b/CodeTrain/0010_Animation_Random_C.js @@ -0,0 +1,31 @@ + +https://editor.p5js.org/mathisudar2007/full/6W6kTM9Zz + +let r, g, b; + +function setup() { + createCanvas(400, 400); + background(0); + fill(0,255,0); + +} + +function draw() { + r = random(255); + g = random(255); + b = random(255); + + noStroke(); + + circle(mouseX, mouseY, 50); +} + +function mousePressed() { + + //background(0); + fill(r,g,b); + +} + + + From 8d99a27a1e158b460b527b9561b1c40f9ce5cf5c Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Wed, 8 Jun 2022 07:19:01 +0530 Subject: [PATCH 35/41] Update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 14bf95a..18d58b7 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,27 @@ +JAVA Script - NODE JS + + +Microsoft Windows [Version 10.0.19042.1706] +(c) Microsoft Corporation. All rights reserved. + +H:\>c: + +C:\>cd "C:\MATHI\VSCode\02_JAVASCRIPT\Jonas Schmedtmann" + +C:\MATHI\VSCode\02_JAVASCRIPT\Jonas Schmedtmann>node 0001_Variables.js +Hello World! + +C:\MATHI\VSCode\02_JAVASCRIPT\Jonas Schmedtmann> + + +![image](https://user-images.githubusercontent.com/76192299/172513854-c132c826-8524-4990-907f-581438972270.png) + + + + Jonas Schmedtmann https://www.udemy.com/course/the-complete-javascript-course/learn/lecture/22648117#overview From 48a519a8565ff2625962e23e064475ba3970c067 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Wed, 8 Jun 2022 07:20:15 +0530 Subject: [PATCH 36/41] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 18d58b7..7b97062 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,6 @@ Hello World! C:\MATHI\VSCode\02_JAVASCRIPT\Jonas Schmedtmann> -![image](https://user-images.githubusercontent.com/76192299/172513854-c132c826-8524-4990-907f-581438972270.png) - From 4e6ca8da19f2cbd240b2b1ed0fc4dd1ab7c4e281 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Wed, 8 Jun 2022 15:50:15 +0530 Subject: [PATCH 37/41] Update README.md --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7b97062..6a49cb9 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,13 @@ # MK_Learn_JavaScript -# https://p5js.org/reference/ - -# https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA -# https://editor.p5js.org/Puettrick/sketches/oUHOZOAR3 -# https://editor.p5js.org/yathy2007/sketches/Fl5orgMuQ + https://p5js.org/reference/ + https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA + https://editor.p5js.org/Puettrick/sketches/oUHOZOAR3 + https://editor.p5js.org/yathy2007/sketches/Fl5orgMuQ + +# MDN Doc - Javascript +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence JAVA Script - NODE JS From f9c3af5619c17381b2f07a1f4fa77222dbde8c9d Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Wed, 8 Jun 2022 18:11:57 +0530 Subject: [PATCH 38/41] Create 0001_Variables.js --- Jonas Schmedtmann/0001_Variables.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Jonas Schmedtmann/0001_Variables.js diff --git a/Jonas Schmedtmann/0001_Variables.js b/Jonas Schmedtmann/0001_Variables.js new file mode 100644 index 0000000..eadd178 --- /dev/null +++ b/Jonas Schmedtmann/0001_Variables.js @@ -0,0 +1,26 @@ +let x = "Hello World!"; +let firstName = "Mathi"; +let lastName = "Krishnan"; + +let country = 'INDIA'; +let continent = 'ASIA'; +let population = 200; + +let isIsland = false; +let language = "Hindi"; + + + +console.log("\n"); +console.log(x); +console.log(firstName+" "+lastName+"\n"); + +console.log("My Country:" + country); +console.log("My Continent:" + continent); +console.log("Population:" + population+"\n"); + +console.log(typeof isIsland); +console.log(typeof population); +console.log(typeof country); +console.log(typeof language+"\n"); + From e1c067b35bf0d246a5134b00a2e04b7602b3825c Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Wed, 8 Jun 2022 18:12:51 +0530 Subject: [PATCH 39/41] Add files via upload --- Jonas Schmedtmann/0002_BasicOperators.js | 23 +++++++++ Jonas Schmedtmann/0003_ArithmeticOperators.js | 49 +++++++++++++++++++ Jonas Schmedtmann/0004_OperatorPreced.js | 25 ++++++++++ Jonas Schmedtmann/0005_BasicOperators.js | 21 ++++++++ 4 files changed, 118 insertions(+) create mode 100644 Jonas Schmedtmann/0002_BasicOperators.js create mode 100644 Jonas Schmedtmann/0003_ArithmeticOperators.js create mode 100644 Jonas Schmedtmann/0004_OperatorPreced.js create mode 100644 Jonas Schmedtmann/0005_BasicOperators.js diff --git a/Jonas Schmedtmann/0002_BasicOperators.js b/Jonas Schmedtmann/0002_BasicOperators.js new file mode 100644 index 0000000..e794ff0 --- /dev/null +++ b/Jonas Schmedtmann/0002_BasicOperators.js @@ -0,0 +1,23 @@ +let x = 5; // assign the value 5 to x +let y = 2; // assign the value 2 to y +let z = x + y; // assign the value 7 to z (5 + 2) + +let x1 = 5; +let y1 = 2; +let z1 = x1 * y1; + +let x2 = 10; +x2 += 5; // x2=x2+5 + +let text1 = "John"; +let text2 = "Doe"; +let text3 = text1 + " " + text2; + +let text4 = "What a very "; +text4 += "nice day"; + +console.log(z); +console.log(z1); +console.log(x2); +console.log(text3); +console.log(text4); \ No newline at end of file diff --git a/Jonas Schmedtmann/0003_ArithmeticOperators.js b/Jonas Schmedtmann/0003_ArithmeticOperators.js new file mode 100644 index 0000000..21ca73f --- /dev/null +++ b/Jonas Schmedtmann/0003_ArithmeticOperators.js @@ -0,0 +1,49 @@ +let x = 5; +let y = 2; +let z = x + y; +console.log("\n"); +console.log("Add 5,2: "+z+"\n"); + +let x2 = 5; +let y2 = 2; +let z2 = x2 - y2; +console.log("Subtract 5,2: "+z2+"\n"); + + +let x3 = 5; +let y3 = 2; +let z3 = x3 * y3; +console.log("Multiply 5,2: "+z3+"\n"); + + +let x4 = 5; +let y4 = 2; +let z4 = x4 / y4; +console.log("Div 5 ,2: "+z4+"\n"); + + + +let x5 = 5; +let y5 = 2; +let z5 = x5 % y5; // Remainder +console.log("Div-Mod 5,2: "+z5+"\n"); + + +let xyz = 5; +xyz++; +let finalXYZ = xyz; +console.log("Add Increment 5: "+finalXYZ+"\n"); + +let dec = 12; +dec--; +let finalDec = dec; +console.log("Decrement 12: "+finalDec+"\n"); + +let x6 = 5; +let z6 = x6 ** 2; // result is 25 +console.log("Exponent 5,2: "+z6+"\n"); + + +let x7 = 5; +let z7 = Math.pow(x7,2); // result is 25 +console.log("Power 5,2: "+z7+"\n"); diff --git a/Jonas Schmedtmann/0004_OperatorPreced.js b/Jonas Schmedtmann/0004_OperatorPreced.js new file mode 100644 index 0000000..79dd6e5 --- /dev/null +++ b/Jonas Schmedtmann/0004_OperatorPreced.js @@ -0,0 +1,25 @@ +const now = 2037; + +const ageJonas = now-1991; +const ageSarah = now - 2018; + +console.log(now-1991 > now-2018); + + +console.log(3 + 4 * 5); // 3 + 20 +// expected output: 23 + +console.log(4 * 3 ** 2); // 4 * 9 +// expected output: 36 + +let a; +let b; + +console.log(a = b = 5); +// expected output: 5 + + +console.log(3 + 10 * 2); // logs 23 +console.log(3 + (10 * 2)); // logs 23 because parentheses here are superfluous +console.log((3 + 10) * 2); // logs 26 because the parentheses change the order + diff --git a/Jonas Schmedtmann/0005_BasicOperators.js b/Jonas Schmedtmann/0005_BasicOperators.js new file mode 100644 index 0000000..6d7e958 --- /dev/null +++ b/Jonas Schmedtmann/0005_BasicOperators.js @@ -0,0 +1,21 @@ +let country = 'Portugal'; +let continent = 'Europe'; +let population = 10; +let language ='portuguese'; + + +console.log(population / 2); +population++; +console.log(population); +console.log(population > 6); +console.log(population < 33); + +const description1 = +country + +' is in ' + +continent + +', and its ' + +population + +' million people speak ' + +language; +console.log(description1); From 0139fc2b19583f8acd303c5426ecd24a3c141469 Mon Sep 17 00:00:00 2001 From: MATHI <76192299+mathisudar@users.noreply.github.com> Date: Thu, 16 Jun 2022 07:50:52 +0530 Subject: [PATCH 40/41] Create 0006_CodeChallenge.js --- Jonas Schmedtmann/0006_CodeChallenge.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Jonas Schmedtmann/0006_CodeChallenge.js diff --git a/Jonas Schmedtmann/0006_CodeChallenge.js b/Jonas Schmedtmann/0006_CodeChallenge.js new file mode 100644 index 0000000..d7e09ac --- /dev/null +++ b/Jonas Schmedtmann/0006_CodeChallenge.js @@ -0,0 +1,17 @@ +const massMark = 78; +const heightMark = 1.69; +const massJohn = 92; +const heightJohn = 1.95; + +const BMIMark = massMark/heightMark**2; +const BMIJohn = massJohn/(heightJohn*heightJohn); +const isMarkHeighBMI = BMIMark > BMIJohn; + +console.log(BMIMark,BMIJohn,isMarkHeighBMI); + +/* + +C:\MATHI\VSCode\02_JAVASCRIPT\Jonas Schmedtmann>node 0006_CodeChallenge.js +27.309968138370508 24.194608809993426 true + +*/ From df10ed0cbf4730fa7f26d1c103b3d83925e857ec Mon Sep 17 00:00:00 2001 From: Mathi Krishnan <76192299+mathisudar@users.noreply.github.com> Date: Mon, 26 Jan 2026 17:31:29 +0000 Subject: [PATCH 41/41] Create Learn_JavaScript_2026 --- Learn_JavaScript_2026 | 1 + 1 file changed, 1 insertion(+) create mode 100644 Learn_JavaScript_2026 diff --git a/Learn_JavaScript_2026 b/Learn_JavaScript_2026 new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Learn_JavaScript_2026 @@ -0,0 +1 @@ +