Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #273 from tonyjemba/patch-1
Browse files Browse the repository at this point in the history
Update app.js
  • Loading branch information
auxfuse authored Dec 29, 2021
2 parents 1ea13f3 + a21e85a commit 5019fcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/art/rakshithshenoy/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ function roundRect(ctx, x, y, width, height, radius, fill, stroke) {
if (typeof radius === "number") {
radius = { tl: radius, tr: radius, br: radius, bl: radius };
} else {
var defaultRadius = { tl: 0, tr: 0, br: 0, bl: 0 };
for (var side in defaultRadius) {
let defaultRadius = { tl: 0, tr: 0, br: 0, bl: 0 };
for (let side in defaultRadius) {
radius[side] = radius[side] || defaultRadius[side];
}
}
Expand All @@ -36,7 +36,7 @@ function roundRect(ctx, x, y, width, height, radius, fill, stroke) {
ctx.stroke();
}
}
var ctx = document.getElementById("canvas").getContext("2d");
let ctx = document.getElementById("canvas").getContext("2d");

// To change the color on the rectangle, just manipulate the context

Expand Down

0 comments on commit 5019fcc

Please sign in to comment.