lib/rubysketch/processing.rb in rubysketch-0.3.11 vs lib/rubysketch/processing.rb in rubysketch-0.3.12

- old
+ new

@@ -1885,11 +1885,11 @@ # @param width [Integer] new width # @param height [Integer] new height # # @return [nil] nil # - def size (width, height) + def size (width, height, pixelDensity: 1) resizeCanvas__ :size, width, height, pixelDensity nil end # Changes canvas size. @@ -1897,10 +1897,10 @@ # @param width [Integer] new width # @param height [Integer] new height # # @return [nil] nil # - def createCanvas (width, height) + def createCanvas (width, height, pixelDensity: 1) resizeCanvas__ :createCanvas, width, height, pixelDensity nil end # Changes and returns canvas pixel density.