$.shape.line( xStart, yStart, xEnd, yEnd)

Draws a line between the 2 pairs of coordinate

  • xStart : number //
  • yStart : number //
  • xEnd : number //
  • yEnd : number //

Examples



function update() {
    $.shape.strokeWidth = 3;	
    $.colour.stroke = "blue";	
    $.shape.line( 
        20,      // xStart
        20,      // yStart
        $.w-20,  // xEnd 
        $.h-20   // yEnd 
    );
};