Methods

Class/Module Index [+]

Quicksearch

Pong::CenteredCircle

Public Instance Methods

draw(cr) click to toggle source
# File gtk2/sample/misc/cairo-pong.rb, line 49
def draw(cr)
  cr.translate(min_x, min_y)
  cr.scale(@width, @height)
  cr.arc(0.5, 0.5, 0.5, 0, 2 * Math::PI)
  cr.fill
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.