Sha256: 5e8eba73b5a5e89aa73f6c93f3b1241951768cadfc1a674a4f5d78592ff339bc
Contents?: true
Size: 307 Bytes
Versions: 1
Compression:
Stored size: 307 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-1.0.0 | examples/sample11.rb |