Sha256: 13c48b1de28500a369db8f361bd8db6819b9da56ff6d9a9d1a975cb97435ce0a
Contents?: true
Size: 408 Bytes
Versions: 3
Compression:
Stored size: 408 Bytes
Contents
module FeedBo module Drawable attr_accessor :svg, :position, :start_position def initialize super @svg = ::Builder::XmlMarkup.new @position = [(Level::WIDTH/2).round, (Level::HEIGHT/2).round] end def draw s = Level::FIELD_SIZE @svg.circle cx: s/2, cy: s/2, r: s/2, style: 'stroke: black; fill: black' end def perform_step end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
feed_bo-0.0.3 | lib/feed_bo/drawable.rb |
feed_bo-0.0.2 | lib/feed_bo/drawable.rb |
feed_bo-0.0.1 | lib/feed_bo/drawable.rb |