Sha256: 4971f76decde281388b4a0e17e84d00fb7d96a8eeec7c53d1b732a9293c7de21

Contents?: true

Size: 317 Bytes

Versions: 4

Compression:

Stored size: 317 Bytes

Contents

#
# WigglePShape. 
# 
# How to move the individual vertices of a PShape
#
load_library :vecmath # NB: load vecmath library here
load_library :wiggler

attr_reader :wiggler

def setup
  size(640, 360, P2D)
  @wiggler = Wiggler.new width, height
end

def draw
  background(255)
  wiggler.display
  wiggler.wiggle
end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-processing-2.4.4 samples/processing_app/library/vecmath/wiggle_pshape.rb
ruby-processing-2.4.3 samples/processing_app/library/vecmath/wiggle_pshape.rb
ruby-processing-2.4.2 samples/processing_app/library/vecmath/wiggle_pshape.rb
ruby-processing-2.4.1 samples/processing_app/library/vecmath/wiggle_pshape.rb