Skip to content

Commit

Permalink
add day
Browse files Browse the repository at this point in the history
  • Loading branch information
lzaquine committed Aug 1, 2022
1 parent fe059f2 commit 1e5455d
Show file tree
Hide file tree
Showing 6 changed files with 1,166 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Week_2_Classes/Day_4_02/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ ctx.strokeText('Hello world', 400, 200); */

// Images
const blockImg = new Image();
blockImg.addEventListener('load', function (){
blockImg.addEventListener('load', function (){ //why did he use function and not =>?
//ctx.drawImage(image, x, y, width, height)
ctx.drawImage(blockImg, 0, 0, 50, 50);
});
Expand All @@ -102,7 +102,7 @@ function draw() {
function drawPattern (){
let blockPattern = ctx.createPattern(blockImg, 'repeat');
ctx.fillStyle = blockPattern;
ctx.fillRect(0, 0, 900, 600);
ctx.fillRect(0, 0, 900, 550);
}
setTimeout(() => {
drawPattern();
Expand Down
1 change: 1 addition & 0 deletions Week_5_Classes/Day_1_05/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
1 change: 1 addition & 0 deletions Week_5_Classes/Day_1_05/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Params
Loading

0 comments on commit 1e5455d

Please sign in to comment.