File: line_width.rb

package info (click to toggle)
ruby-rghost 0.9.9-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,188 kB
  • sloc: ruby: 3,374; makefile: 6; sh: 1
file content (26 lines) | stat: -rw-r--r-- 473 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require "rghost/ps_object"
# Sets the line width parameter in the graphics state.
class RGhost::LineWidth < RGhost::PsObject
  # Examples
  # The more tiny line
  # doc=Document.new
  # doc.line_width 0
  #
  # link:images/line_width01.png
  #
  # doc.line_width 1
  #
  # link:images/line_width02.png
  #
  # doc.line_width 2
  #
  # link:images/line_width03.png
  #
  def initialize(value = 0.3)
    @value = value
  end

  def ps
    "#{@value} setlinewidth "
  end
end