Sha256: 3eb9139756529ab86a98449823715b68dd83e0381dc3f94e7e8750bc9da2878e
Contents?: true
Size: 380 Bytes
Versions: 9
Compression:
Stored size: 380 Bytes
Contents
# No Loop. # # The noLoop() function causes draw() to only # execute once. Without calling noLoop(), draw() # executed continually. attr_reader :y def setup size 640, 360 @y = height / 2 stroke 255 frame_rate 30 no_loop end def draw background 0 @y = y - 1 @y = height if y < 0 line 0, y, width, y end def mouse_pressed loop end
Version data entries
9 entries across 9 versions & 1 rubygems