class Glimmer::View::Cube

Constants

DEFAULT_SIZE

Public Instance Methods

pit() click to toggle source
# File lib/glimmer/view/cube.rb, line 82
def pit
  oval(rectangle_width / 4.0, rectangle_height / 4.0, rectangle_width / 2.0, rectangle_height / 2.0) {
    background :black
  }
end
pitted=(value) click to toggle source
# File lib/glimmer/view/cube.rb, line 32
def pitted=(value)
  options[:pitted] = value
  if value
    body_root.content {
      @pit ||= pit
    }
  else
    @pit&.dispose
    @pit = nil
  end
end