$.state.load( )

Loads the previous configuration of shape, colour, and text

    Examples

    
    
    function update() {
        //first rectangle
        $.colour.fill = "red";
        $.shape.strokeWidth=3;
        $.shape.rectangle(25,25,50,50);
    
        $.state.save();
        //second rectangle
        $.colour.fill = "blue"; 
        $.shape.strokeWidth=5;
        $.shape.rectangle(75,75,50,50);
        $.state.load();
    
        //third rectangle
        $.shape.rectangle(125,125,50,50);
    }