Sha256: 28215fc65533bc9d287349629dcb3690b1321fd53c95a2b70beeb681ed459969
Contents?: true
Size: 332 Bytes
Versions: 11
Compression:
Stored size: 332 Bytes
Contents
# The Nature of Code # Daniel Shiffman # http://natureofcode.com class Connection < Physics::VerletSpring2D extend Forwardable def_delegators(:@app, :stroke, :line) def initialize(p1, p2, len, strength) super(p1, p2, len, strength) @app = $app end def display stroke(0) line(a.x, a.y, b.x, b.y) end end
Version data entries
11 entries across 11 versions & 1 rubygems