Sha256: d924360c825ffe9e2cc685d42777a04eefe04256c76e7430a992a4cfba9fa364
Contents?: true
Size: 645 Bytes
Versions: 3
Compression:
Stored size: 645 Bytes
Contents
require 'ruby-processing' class ZoogAgain < Processing::App def setup background 255 smooth # Set ellipses and rects to CENTER mode ellipse_mode CENTER rect_mode CENTER # Draw Zoog's body stroke 0 fill 150 rect 100, 100, 20, 100 # Draw Zoog's head fill 255 ellipse 100, 70, 60, 60 # Draw Zoog's eyes fill 0 ellipse 81, 70, 16, 32 ellipse 119, 70, 16, 32 # Draw Zoog's legs stroke 0 line 90, 150, 80, 160 line 110, 150, 120, 160 end def draw end end ZoogAgain.new :title => "Zoog Again", :width => 200, :height => 200
Version data entries
3 entries across 3 versions & 1 rubygems