Sha256: ab85180ae51d319db5dce0083bb8cdd79371fa214a58c138b24e149f05bb5201
Contents?: true
Size: 285 Bytes
Versions: 1
Compression:
Stored size: 285 Bytes
Contents
require "sgl" def setup window -200, -200, 200, 200 background 100 $x = 0 $y = 0 end def display x = mouseX y = mouseY speed = 20.0 vx = (x - $x)/speed vy = (y - $y)/speed $x = $x + vx $y = $y + vy color 100, 0, 0 circle($x, $y, 50, POLYGON) end mainloop
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sgl-0.4.0 | examples/sample11.rb |