The arc function

  Read comments... [No canvas support]

The arc function is used whilst drawing paths to the canvas to draw a circle or a partial circle to the canvas.

Arguments to the function

1 Angles are measured in radians - not degrees. 1 radian is equal to (180 / Math.PI) degrees.

An example

    window.onload = function ()
        var canvas  = document.getElementById('cvs');
        var context = canvas.getContext)'2d');

        // This draws a whole circle to the canvas
        context.arc(125, 125, 100, 0, Math.PI * 2, false);

If you like RGraph please share it: