demos/Collage/fabric.js
function(ctx) {
      ctx.save();

      var m = this.transformMatrix;
      if (m) {
        ctx.transform(m[0], m[1], m[2], m[3], m[4], m[5]);
      }

      this.transform(ctx);
      for (var i = 0, l = this.paths.length; i < l; ++i) {
        this.paths[i].render(ctx, true);
      }
      if (this.active) {
        this.drawBorders(ctx);
        this.hideCorners || this.drawCorners(ctx);
      }
      ctx.restore();
    }
function(ctx) {
      ctx.save();

      var m = this.transformMatrix;
      if (m) {
        ctx.transform(m[0], m[1], m[2], m[3], m[4], m[5]);
      }

      this.transform(ctx);
      for (var i = 0, l = this.paths.length; i < l; ++i) {
        this.paths[i].render(ctx, true);
      }
      if (this.active) {
        this.drawBorders(ctx);
        this.hideCorners || this.drawCorners(ctx);
      }
      ctx.restore();
    }
function ( ctx ) { ctx . save ( ) ; var m = this . transformMatrix ; if ( m ) { ctx . transform ( m [ 0 ] , m [ 1 ] , m [ 2 ] , m [ 3 ] , m [ 4 ] , m [ 5 ] ) ; } this . transform ( ctx ) ; for ( var i = 0 , l = this . paths . length ; i < l ; ++ i ) { this . paths [ i ] . render ( ctx , true ) ; } if ( this . active ) { this . drawBorders ( ctx ) ; this . hideCorners || this . drawCorners ( ctx ) ; } ctx . restore ( ) ; }
Renders this group on a specified context
@method render
@param {CanvasRenderingContext2D} ctx Context to render this instance on
Renders this group on a specified context