Sha256: 50ec13988ec9afc3fedf87efc3dcc7a9f43449e227c5b70eca0127174fdb69bf
Contents?: true
Size: 351 Bytes
Versions: 10
Compression:
Stored size: 351 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
Version data entries
10 entries across 10 versions & 1 rubygems