Method: EideticPDF::DocumentWriter#pie
- Defined in:
- lib/epdfdw.rb
#pie(x, y, r, start_angle, end_angle, options = {}) ⇒ Object
Draw a pie-shaped wedge with origin x, y and radius r from start_angle to end_angle degrees.
- :
border -
If true or a color, a border is drawn with the current or specified
line_color, respectively. Defaults totrue. - :
fill -
If true or a color, the area is filled with the current or specified
fill_color, respectively. Defaults tofalse. - :
clip -
If true and a block is given, the shape acts as a clipping boundary for anything drawn within the supplied block.
- :
reverse -
By default, the bounding path is drawn from
(x, y)to(r, start_angle)through(r, end_angle)and back to(x, y). This order is reversed if:reverse => true. This is useful for drawing hollow shapes.
These current settings also apply: line_color, line_width, line_dash_pattern and fill_color.
339 340 341 |
# File 'lib/epdfdw.rb', line 339 def pie(x, y, r, start_angle, end_angle, ={}) cur_page.pie(x, y, r, start_angle, end_angle, ) end |