In Files

Parent

Methods

Included Modules

Class Index [+]

Quicksearch

Magick::RVG::Pattern

Attributes

x[R]

Return upper-left corner, width, height of viewport in user coordinates. Usually these are the values specified when the Pattern object is created, but they can be changed by a call to the viewbox method.

y[R]

Return upper-left corner, width, height of viewport in user coordinates. Usually these are the values specified when the Pattern object is created, but they can be changed by a call to the viewbox method.

width[R]

Return upper-left corner, width, height of viewport in user coordinates. Usually these are the values specified when the Pattern object is created, but they can be changed by a call to the viewbox method.

height[R]

Return upper-left corner, width, height of viewport in user coordinates. Usually these are the values specified when the Pattern object is created, but they can be changed by a call to the viewbox method.

Public Class Methods

new(width=0, height=0, x=0, y=0) click to toggle source

Create a pattern that can be used with the :fill or :stroke styles. The width and height arguments define the viewport. The pattern will be repeated at x+m*width and y+n*height offsets.

Define the pattern in the block. The pattern can be composed of shapes (rectangle, circles, etc.), text, raster images and container objects. You can include graphic objects by referring to them with #.

    # File lib/rvg/paint.rb, line 35
35:             def initialize(width=0, height=0, x=0, y=0)
36:                 super()
37:                 @width, @height, @x, @y = Magick::RVG.convert_to_float(width, height, x, y)
38:                 @content = Content.new
39:                 yield(self) if block_given?
40:             end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.