Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
HTML5 Canvas distorted
If the canvas looks distorted, then try to change the height and width −
The default height and width of the canvas in HTML5 is of 2/1 ratio −
width = 300 height = 150
Example
Let us see an example −
Output

Advertisements
