demos/Collage/fabric.js
function() {
      return this.paths.reduce(function(total, path) {
        return total + ((path && path.complexity) ? path.complexity() : 0);
      }, 0);
    }
function() {
      return this.paths.reduce(function(total, path) {
        return total + ((path && path.complexity) ? path.complexity() : 0);
      }, 0);
    }
function ( ) { return this . paths . reduce ( function ( total , path ) { return total + ( ( path && path . complexity ) ? path . complexity ( ) : 0 ) ; } , 0 ) ; }
Returns number representation of object's complexity
@method complexity
@return {Number} complexity
Returns number representation of object s complexity