$.shape.alignment.y

sets the vertical origin drawing point for certain shapes

Examples



function update() {
    $.colour.stroke="transparent";
	$.shape.alignment.y="bottom";
	$.shape.rectangle( 
		$.w/2,      // x position
		$.h/2,      // y position
		30,        // width 
		30         // height 
	);
    
    $.shape.alignment.y="center";
    $.colour.fill="red";
    $.colour.stroke="transparent";
    $.shape.oval(
        $.w/2,      // x position
		$.h/2,      // y position
		10,        // width 
		10         // height 
    );
}