usingMaths.com
Demonstrating and showing pupils and students one application of Mathematics.







<< PreviousNext >>

Graphs like HTML Canvas



Cartesian Plane

The Cartesian Plane is the usual graph surface we are taught in school.
It consists of the x and y axes.

However, there is a subtle difference between the way we use graphs and the HTML Canvas:
The y-axis of the HTML Canvas is measured from the top and increases as you move downwards.

Graph/Canvas  Comparism

Drawing on the HTML Canvas

In HTML, the canvas tags would represent something like a graph book; and this graph book is plotted or drawn on using JavaScript.
Everything in between these tags are processed as code before the browser adds the result to the static HTML mark-up.


Important: If you don't see anything when you try out the canvas tag, it may be that your browser does not support the canvas tag.
Update the browser to a recent version; or get a different browser.









<< PreviousNext >>