Profile cover photo
Profile photo
Andrew Berg
169 followers -
Oh, that guy!
Oh, that guy!

169 followers
About
Andrew's posts

Post has attachment
+Douglas Crockford  I was curious about your new object creation pattern described in "The Better Parts", how do you deal with public properties? Getters and setters, or referencing that.property?

eg:

var count1 = function(){
    
    var that = {},
        count = 0,
        logCount = function(){
            console.log('count 1 =', that.count);
        };
    
    that.count = count;
    that.logCount = logCount;
    
    return that;
};

c1 = count1();
c1.count += 1;
c1.logCount();

var count2 = function(){
    
    var that = {},
        _count = 0,
        logCount = function(){
            console.log('count 2 =', _count);
        };
    
    Object.defineProperty(that, "count", {
        get : function () {
                return _count;
              },
        set : function (val) {
                _count = val;
              }
    });
    that.logCount = logCount;
    
    return that;
};

c2 = count2();
c2.count += 2;
c2.logCount();

Post has attachment
New personal work in the style of Josh Keyes, models from Rome. http://www.andrewberg.com/vignettes/untitled004/ #threejs   #webgl  
Photo

Post has attachment
a new vignette, some audio reactive geometry. http://bit.ly/Z9RDOF
Photo

Post has attachment
#ifihadglass I¹d make GlassPert a personalized concierge service that enables consumers to efficiently research, browse, and buy with confidence. Product details, size and fit specifications, and kitting recommendations provided in the context of the store shopping experience by a virtual, knowledgeable, and friendly expert will speed and simplify their purchase. 
PhotoPhotoPhotoPhotoPhoto
5 Photos - View album

Post has attachment
Vignette 001 http://bit.ly/Yr6AAC something more like a complete statement. webgl built using a bunch of stuff mostly three.js

More javascript steering behaviors, this time decoupled orientation from velocity. face target: http://bit.ly/May6aw look where you're going: http://bit.ly/NjIDny

Post has attachment
the hall of mirrors is particularly well done.

Post has attachment

Post has attachment

Post has attachment
Wait while more posts are being loaded