lib/rmagick_internal.rb
# Define a pattern. In the block, call primitive methods to
# draw the pattern. Reference the pattern by using its name
# as the argument to the 'fill' or 'stroke' methods
Define a pattern. In the block, call primitive methods to
draw the pattern. Reference the pattern by using its name
as the argument to the 'fill' or 'stroke' methods
Define a pattern . In the block call primitive methods to draw the pattern . Reference the pattern by using its name as the argument to the ' fill ' or ' stroke ' methods
def pattern(name, x, y, width, height)
      push('defs')
      push("pattern #{name} " + sprintf('%g %g %g %g', x, y, width, height))
      push('graphic-context')
      yield
    ensure
      pop('graphic-context')
      pop('pattern')
      pop('defs')
    end
def pattern ( name , x , y , width , height ) push ( 'defs' ) push ( "pattern #{name} " + sprintf ( '%g %g %g %g' , x , y , width , height ) ) push ( 'graphic-context' ) yield ensure pop ( 'graphic-context' ) pop ( 'pattern' ) pop ( 'defs' ) end
Define a pattern.
Define a pattern .
name
<not_specific>
x
<not_specific>
y
<not_specific>
width
<not_specific>
height
<not_specific>