File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -777,12 +777,10 @@ var p5DOM = (function(){
777777 this . canvas = document . createElement ( 'canvas' ) ;
778778 this . canvas . width = this . width ;
779779 this . canvas . height = this . height ;
780- this . canvas . getContext ( '2d' ) . drawImage ( this . elt , 0 , 0 ) ;
781- p5 . prototype . loadPixels . call ( this ) ;
782- } else {
783- this . canvas . getContext ( '2d' ) . drawImage ( this . elt , 0 , 0 ) ;
784- p5 . prototype . loadPixels . call ( this ) ;
780+ this . drawingContext = this . canvas . getContext ( '2d' ) ;
785781 }
782+ this . drawingContext . drawImage ( this . elt , 0 , 0 ) ;
783+ p5 . prototype . loadPixels . call ( this ) ;
786784 }
787785 return this ;
788786 }
Original file line number Diff line number Diff line change 1- /*! p5.js v0.3.4 August 26 , 2014 */
1+ /*! p5.js v0.3.4 August 27 , 2014 */
22var shim = function ( require ) {
33 window . requestDraw = function ( ) {
44 return window . requestAnimationFrame || window . webkitRequestAnimationFrame || window . mozRequestAnimationFrame || window . oRequestAnimationFrame || window . msRequestAnimationFrame || function ( callback , element ) {
You can’t perform that action at this time.
0 commit comments