Could Someone Please Help Look Tutorials M Getting Far Var Canvas Documentgetelementbyid M Q37106888

Could someone pleasehelp with this? I look through the tutorials, but i’m only gettingso far.

<script>
var canvas = document.getElementById(“myCanvas”);
var ctx = canvas.getContext(“2d”);
ctx.fillStyle = “#FF0000”;
ctx.fillRect(0, 0, 150, 75);
</script>

For this problem, youwill create a simple HTML page that allows the user to draw circlesby clicking inside of a canvas element.

The HTML page shallcontain a title, a header, two text fields, and a canvas. The titleshall include your name. The header shall contain the text “Problem2”. The first text field shall have a label indicating that thefield controls the number of circles that will be drawn. The secondtext

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.