manual/graphics/fill_rules.rb in prawn-2.3.0 vs manual/graphics/fill_rules.rb in prawn-2.4.0
- old
+ new
@@ -23,12 +23,13 @@
pentagram = [[181, 95], [0, 36], [111, 190], [111, 0], [0, 154]]
stroke_color 'ff0000'
line_width 2
- text_box 'Nonzero Winding Number', at: [50, 215],
- width: 170,
- align: :center
+ text_box 'Nonzero Winding Number',
+ at: [50, 215],
+ width: 170,
+ align: :center
polygon(*pentagram.map { |x, y| [x + 50, y] })
fill_and_stroke
text_box 'Even-Odd', at: [330, 215], width: 170, align: :center
polygon(*pentagram.map { |x, y| [x + 330, y] })