Sha256: 55c460866bc9ba05fe7f1b56f09ab2a0f5a3ff9a94d87291b86b20f271696b51
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
module Gosu # Sourced from https://gist.github.com/ippa/662583 def self.draw_circle(cx,cy,r, z = 9999,color = Gosu::Color::GREEN, step = 10) 0.step(360, step) do |a1| a2 = a1 + step draw_line(cx + Gosu.offset_x(a1, r), cy + Gosu.offset_y(a1, r), color, cx + Gosu.offset_x(a2, r), cy + Gosu.offset_y(a2, r), color, z) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cyberarm_engine-0.13.1 | lib/cyberarm_engine/gosu_ext/circle.rb |
cyberarm_engine-0.12.1 | lib/cyberarm_engine/gosu_ext/circle.rb |