I have some old QuickBasic code (yes, really) that I'm working on rewriting in JavaScript. In QuickBasic a circle is defined like so:
CIRCLE (column, row), radius, color, startRadian, stopRadian, aspect
In JavaScript on the HTML5 canvas like so:
c.arc(column, row, radius, startAngle, endAngle, counterclockwise);
As one can see, the statements are fairly similar - except that QuickBasic has parameters for color and aspect.
I can use context.strokeStyle to handle the color, but I'm unsure of how to handle the aspect? What JavaScript command would I use to accomplish a similar effect as that described by QuickBasic via the aspect parameter?
In this case aspect can be defined as:
"SINGLE values of 0 to 1 affect the vertical height and values over 1 affect the horizontal width of an ellipse. Aspect = 1 is a normal circle." - QB64 Wiki