class CTioga2::Graphics::Styles::CrossedLinesFillPattern

Public Class Methods

new(dst1 = nil, lw1 = nil, angle = 45, dst2 = nil, lw2 = nil, dangle = 90) click to toggle source
# File lib/ctioga2/graphics/styles/fill.rb, line 193
def initialize(dst1 = nil, lw1 = nil, angle = 45, 
               dst2 = nil, lw2 = nil, dangle = 90)
  @first = SingleLineFillPattern.new(angle, dst1, lw1)
  @second = SingleLineFillPattern.new(@first.angle + dangle.to_f, 
                                      dst2 || dst1, lw2 || lw1)
end

Public Instance Methods

do(t, color, secondary = nil) click to toggle source
# File lib/ctioga2/graphics/styles/fill.rb, line 201
def do(t, color, secondary = nil)
  @first.do(t, color)
  @second.do(t, secondary || color)
end