Sha256: 5531617a8c6897360083eb557ace4bfb272726b73341589a3a783f8b2ee5724f

Contents?: true

Size: 544 Bytes

Versions: 10

Compression:

Stored size: 544 Bytes

Contents

# Load and Display a Shape. 
# Illustration by George Brower. 
# 
# The loadShape() command is used to read simple SVG (Scalable Vector Graphics)
# files into a Processing sketch. This library was specifically tested under
# SVG files created from Adobe Illustrator. For now, we can't guarantee that 
# it'll work for SVGs created with anything else. 
attr_reader :bot

def setup    
  size 640, 360    
  @bot = load_shape "bot1.svg"    
  no_loop
end

def draw  
  background 102  	
  shape bot, 110, 90, 100, 100  	
  shape bot, 280, 40
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby-processing-2.6.3 samples/processing_app/basics/shape/load_display_shape.rb
ruby-processing-2.6.2 samples/processing_app/basics/shape/load_display_shape.rb
ruby-processing-2.6.1 samples/processing_app/basics/shape/load_display_shape.rb
ruby-processing-2.6.0 samples/processing_app/basics/shape/load_display_shape.rb
ruby-processing-2.5.1 samples/processing_app/basics/shape/load_display_shape.rb
ruby-processing-2.5.0 samples/processing_app/basics/shape/load_display_shape.rb
ruby-processing-2.4.4 samples/processing_app/basics/shape/load_display_shape.rb
ruby-processing-2.4.3 samples/processing_app/basics/shape/load_display_shape.rb
ruby-processing-2.4.2 samples/processing_app/basics/shape/load_display_shape.rb
ruby-processing-2.4.1 samples/processing_app/basics/shape/load_display_shape.rb