File: circle.rb

package info (click to toggle)
ruby-cairo 1.15.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 900 kB
  • ctags: 1,364
  • sloc: ansic: 9,174; ruby: 3,620; sh: 116; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 177 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
module Cairo
  class Context
    module Circle
      def circle(center_x, center_y, radius)
        arc(center_x, center_y, radius, 0, 2 * Math::PI)
      end
    end
  end
end