Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

633207 Views

Latest files of /cody/bradtraversy/50projects50days/drawing-app

style.css cody/bradtraversy/50projects50days/drawing-app/style.css
69 Views
0 Comments
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
box-sizing: border-box;
}

body {
background-color: #f5f5f5;
index.html cody/bradtraversy/50projects50days/drawing-app/index.html
255 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Drawing App</title>
</head>
script.js cody/bradtraversy/50projects50days/drawing-app/script.js
74 Views
0 Comments
const canvas = document.getElementById('canvas');
const increaseBtn = document.getElementById('increase');
const decreaseBtn = document.getElementById('decrease');
const sizeEL = document.getElementById('size');
const colorEl = document.getElementById('color');
const clearEl = document.getElementById('clear');

const ctx = canvas.getContext('2d');