var lobjetdart2 = function () {
    var theCanvas;
    var howLong = window.innerWidth;
    var howHi = window.innerHeight;

    var init = function () {
        theCanvas = document.createElement("canvas");
        theCanvas.id = "thecanvas";
        theCanvas.width = howLong;
        theCanvas.height = howHi;
        document.body.appendChild(theCanvas);
        stripe(howLong/40);
    };

    var stripe = function (spacing) {
        var ctx = document.getElementById("thecanvas").getContext("2d");
        for(var i = 0;i < howLong;i += spacing) {
            ctx.fillStyle = "rgb("+makePretty()+", "+makePretty()+",
"+makePretty()+")";
            ctx.fillRect(i, 0, spacing, howLong);
        }

    };

    var makePretty = function() {
        return parseInt(Math.random()*255);
    }

    init();
};
_______________________________________________
NetBehaviour mailing list
[email protected]
http://www.netbehaviour.org/mailman/listinfo/netbehaviour

Reply via email to