Method: PDF::Writer::Graphics#stroke_color!
- Defined in:
- lib/pdf/writer/graphics.rb
#stroke_color!(color = nil) ⇒ Object
Forces the color for stroke operations to be set, even if the color is the same as the current color. Does nothing if nil is provided.
508 509 510 511 512 513 |
# File 'lib/pdf/writer/graphics.rb', line 508 def stroke_color!(color = nil) if color @current_stroke_color = color add_content "\n#{@current_stroke_color.pdf_stroke}" end end |