HTML5 Canvas Tutorial7 - Rectangles
Methods
fillRect(x, y, width, height) :draws a filled rectangle.
strokeRect(x, y, width, height):draws a rectangular outline.
Demo
Try this code
Welcome to my blog. This is Shinainai . I am a programmer . I live in California.I love art! I love STEM! Hope you have a nice stay!
fillRect(x, y, width, height) :draws a filled rectangle.
strokeRect(x, y, width, height):draws a rectangular outline.
Try this code