Classes


Last modified: 2012-12-5

Class Pattern

Class Summary
Constructor Attributes Constructor Name and Description
<private>  
No Constructor.
Method Summary
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 
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.
Class Detail
<private>

Pattern

()
No Constructor. Object created by different MGraphics functions.
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
 

©2012-2013
Max MSP Documentation copied to JsDoc by Tim Schenk SEO Frelancer Berlin. Some examples are by him. Some descriptions of classes, interfaces, properties, methods or events are by him. Until now, most of it is a copy. Published with permission of Cycling '74. This document might be wrong or incomplete. All informations without any warranty. All trademarks are the property of their respective owners. Documentation generated by JsDoc Toolkit on 2012-12-5