Flat, round, designer-friendly pseudo-3D engine for canvas & SVG
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿž fix centering for hi-res displays ๐Ÿ“ฆ .gitignore .DS_Store for npmignore

+4 -1
+1
.gitignore
··· 1 + .DS_Store 1 2 node_modules/ 2 3 bower_components/
+3 -1
js/illustration.js
··· 154 154 ctx.clearRect( 0, 0, this.canvasWidth, this.canvasHeight ); 155 155 ctx.save(); 156 156 if ( this.centered ) { 157 - ctx.translate( this.width/2, this.height/2 ); 157 + var centerX = this.width/2 * this.pixelRatio; 158 + var centerY = this.height/2 * this.pixelRatio; 159 + ctx.translate( centerX, centerY ); 158 160 } 159 161 var scale = this.pixelRatio * this.zoom; 160 162 ctx.scale( scale, scale );