lib/processing/image.rb in processing-0.5.4 vs lib/processing/image.rb in processing-0.5.5
- old
+ new
@@ -24,9 +24,20 @@
#
def height()
@image.height
end
+ alias w width
+ alias h height
+
+ # Returns the width and height of image.
+ #
+ # @return [Array<Numeric>] [width, height]
+ #
+ def size()
+ @image.size
+ end
+
# Applies an image filter.
#
# overload filter(shader)
# overload filter(type)
# overload filter(type, param)