Sha256: df09622b21ba96fc5b29e3864843cc7067bb84b5ef982d08046e7fd271823791

Contents?: true

Size: 520 Bytes

Versions: 2

Compression:

Stored size: 520 Bytes

Contents

# Words. 
# 
# The text() function is used for writing words to the screen. 

class Words < Processing::App

  def setup
    
    size 200, 200
    
    @x = 30
    
    @font = load_font "Ziggurat-HTF-Black-32.vlw" # generate with Processing IDE
    
    text_font @font, 32
    
    no_loop
  end
  
  def draw
    
    background 102
  
  	fill 0
  	text "ichi", @x, 60
  	fill 51
  	text "ni", @x, 95
  	fill 204
  	text "san", @x, 130
  	fill 255
  	text "shi", @x, 165
  	
  end
  
end

Words.new :title => "Words"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-processing-1.0.11 samples/processing_app/basics/typography/words.rb
ruby-processing-1.0.10.1 samples/processing_app/basics/typography/words.rb