Last modified: 2012-12-5
Class Pattern
Constructor Attributes | Constructor Name and Description |
---|---|
<private> |
Pattern()
No Constructor.
|
Method Attributes | Method Name and Description |
---|---|
void |
add_color_stop_rgba(index, red, green, blue, alpha)
A function called on a previously created pattern, the add_color_stop_rgba will define a color value
for one of the influence points of the pattern.
|
String |
Returns the extend value of the pattern.
|
Array |
Returns the current transform matrix for the pattern
|
String |
get_type()
Returns the type of pattern that was created.
|
void |
Revert the user space transform matrix to its default (normal) orientation.
|
void |
rotate(rotation)
Apply a rotation transform on the user space in which the pattern is displayed.
|
void |
scale(x, y)
Scale the pattern by a factor in both X and Y coordinate spaces.
|
void |
set_extend(extend_type)
Determines how the pattern will be created when there is more space than available information.
|
void |
set_matrix(xx, xy, yx, yy, x0, y0)
Directly sets the transform matrix used in the creation of the pattern.
|
void |
translate(x, y)
Apply a translation transform (spatial offset) on the user space in which the pattern is displayed.
|
Method Detail
{void}
add_color_stop_rgba
(index, red, green, blue, alpha)
A function called on a previously created pattern, the add_color_stop_rgba will define a color value
for one of the influence points of the pattern. The index parameter determine which influence point is being defined.
- Parameters:
- {Float} index
- {Float} red
- {Float} green
- {Float} blue
- {Float} alpha
{String}
get_extend
()
Returns the extend value of the pattern. Options include: “none”, “repeat”, “reflect”, and “pad”.
{Array}
get_matrix
()
Returns the current transform matrix for the pattern
{String}
get_type
()
Returns the type of pattern that was created.
{void}
identity_matrix
()
Revert the user space transform matrix to its default (normal) orientation.
{void}
rotate
(rotation)
Apply a rotation transform on the user space in which the pattern is displayed.
- Parameters:
- {Float} rotation
{void}
scale
(x, y)
Scale the pattern by a factor in both X and Y coordinate spaces.
- Parameters:
- {Float} x
- {Float} y
{void}
set_extend
(extend_type)
Determines how the pattern will be created when there is more space than available information.
Options include: “none”, “repeat”, “reflect”, and “pad”.
- Parameters:
- {String} extend_type
{void}
set_matrix
(xx, xy, yx, yy, x0, y0)
Directly sets the transform matrix used in the creation of the pattern.
- Parameters:
- {Float} xx
- {Float} xy
- {Float} yx
- {Float} yy
- {Float} x0
- {Float} y0
{void}
translate
(x, y)
Apply a translation transform (spatial offset) on the user space in which the pattern is displayed.
- Parameters:
- {Float} x
- {Float} y