Sha256: 5eb039ae438be4030b6f76960fc381dfc21b604df164617aa968cc7a76926b99

Contents?: true

Size: 532 Bytes

Versions: 3

Compression:

Stored size: 532 Bytes

Contents

require 'ruby-processing'

class Zoog < Processing::App

  def setup
    background 255 
    smooth  
    ellipse_mode CENTER 
    rect_mode CENTER  

    # Body
    stroke 0 
    fill 150 
    rect 100, 100, 20, 100 

    # Head
    fill 255 
    ellipse 100, 70, 60, 60  

    # Eyes
    fill 0  
    ellipse 81, 70, 16, 32  
    ellipse 119, 70, 16, 32 

    # Legs
    stroke 0 
    line 90, 150, 80, 160 
    line 110, 150, 120, 160 
  end
  
  def draw
  
  end
  
end

Zoog.new :title => "Zoog", :width => 200, :height => 200

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-processing-1.0.1 samples/learning_processing/chapter_01/5_zoog.rb
ruby-processing-1.0.2 samples/learning_processing/chapter_01/5_zoog.rb
ruby-processing-1.0.3 samples/learning_processing/chapter_01/5_zoog.rb