HTML5 Canvas exercise

Developer
Size
1,803 Kb
Views
10,120

How do I make an html5 canvas exercise?

Learning the ins and outs of Canvas. :). What is a html5 canvas exercise? How do you make a html5 canvas exercise? This script and codes were developed by Peter Lewicki on 08 October 2022, Saturday.

HTML5 Canvas exercise Previews

HTML5 Canvas exercise - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>HTML5 Canvas exercise</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html> <head> <title> HTML5 CANVAS excercise</title> <head> <body> <canvas id='canvas' width='600' height='300'> Canvas not supported</canvas> </body> </html> <script src="js/index.js"></script>
</body>
</html>

HTML5 Canvas exercise - Script Codes CSS Codes

body { background: #dddddd;
}
#canvas { margin: 10px; padding: 10px; background: #ffffff; border: thin inset #aaaaaa;
}

HTML5 Canvas exercise - Script Codes JS Codes

var canvas = document.getElementById('canvas'), context = canvas.getContext('2d');
context.font = '38pt Arial';
context.fillStyle = 'cornflowerblue';
context.strokeStyle = 'blue';
context.fillText('Hello Canvas', canvas.width/2 - 150, canvas.height/2 + 15);
context.strokeText('Hello Canvas', canvas.width/2 - 150, canvas.height/2 + 15);
HTML5 Canvas exercise - Script Codes
HTML5 Canvas exercise - Script Codes
Home Page Home
Developer Peter Lewicki
Username peterlewicki
Uploaded October 08, 2022
Rating 3
Size 1,803 Kb
Views 10,120
Do you need developer help for HTML5 Canvas exercise?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Peter Lewicki (peterlewicki) Script Codes
Create amazing love letters with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!