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