Sha256: 631fcaff16dea82492b48ec3df6b9e5c654972201da0378a86dfe73327b06898
Contents?: true
Size: 571 Bytes
Versions: 5
Compression:
Stored size: 571 Bytes
Contents
## # Include this in your simulation to automatically include an FPS # meter. module ShowFPS def draw n # :nodoc: super fps n end end ## # Include this in your simulation and define +GRID_WIDTH+ to draw a # grid in the window. module DrawGrid def pre_draw n # :nodoc: super (0...w).step(self.class::GRID_WIDTH).each do |x| hline x, :gray vline x, :gray end end end ## # Include this in your simulation to make the background white. module WhiteBackground CLEAR_COLOR = :white # :nodoc: DEBUG_COLOR = :black # :nodoc: end
Version data entries
5 entries across 5 versions & 1 rubygems