$.shape.rotation

rotates future shapes drawn,this will effect: rectangle, multiline and polygon.

Examples


function update() {
    $.w=150;
    $.h=400;
	$.shape.rotation=30;
	$.shape.rectangle( 
		$.w/2,      // x position
		$.h/2,      // y position
		30,        // width 
		30         // height 
	);     
}