Sha256: 74ed849cfde9a82888dd2717a68d7898682f8288ba2a1cc6f39db191bc819a01
Contents?: true
Size: 427 Bytes
Versions: 4
Compression:
Stored size: 427 Bytes
Contents
require 'ruby-processing' class HelloWorldImageSketch < Processing::App def setup # the image file must be in the data directory @img = load_image("mysummervacation.jpg") end def draw background 0 #The image function displays the image at a location-in this case the point (0,0). image @img, 0, 0 end end HelloWorldImageSketch.new :title => "Hello World Image", :width => 320, :height => 240
Version data entries
4 entries across 4 versions & 1 rubygems