[NetBehaviour] An art object

Pall Thayer pallthay at gmail.com
Mon Jul 20 20:56:00 CEST 2015


var whiteOnWhite = function () {
    this.color = "fff";
    this.offset = 100;
    this.howLong = window.innerWidth;
    this.howHi = window.innerHeight;
    this.wowdiv;

    this.drawWOW = function() {
        wowdiv = document.createElement("div");
        setWOW();
        document.body.appendChild(wowdiv);
    };

    var setWOW = function() {
        wowdiv.id = "wowdiv";
        wowdiv.style["margin-top"] = this.offset+"px";
        wowdiv.style["margin-left"] = this.offset+"px";
        wowdiv.style.width = this.howLong-(this.offset*2)+"px";
        wowdiv.style.height = this.howHi-(this.offset*2)+"px";
        wowdiv.style["background-color"] = "#ffc";
        wowdiv.style.transform = "rotate(3deg)";
    }.bind(this);
};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.netbehaviour.org/pipermail/netbehaviour/attachments/20150720/8d79713b/attachment.htm>


More information about the NetBehaviour mailing list