Last modified: 2013-3-2
Class CanvasPattern
Canvas-Api for Max (can be found in MAX_PATH/Cycling '74/jsextensions/)
Defined in: CanvasExtension.js
See: HTML5 Canvas
Constructor Attributes | Constructor Name and Description |
---|---|
CanvasPattern(pat, rep)
A CanvasPattern with MGraphics Pattern and repetition settings for that pattern.
|
Field Attributes | Field Name and Description |
---|---|
Pattern |
a MGraphics Pattern.
|
String |
String to defines the repetition modes.
|
Class Detail
CanvasPattern
(pat, rep)
A CanvasPattern with MGraphics Pattern and repetition settings for that pattern.
Defined in: CanvasExtension.js
Defined in: CanvasExtension.js
- Example:
var rep = "repeat-y"; var pattern = mgraphics.pattern_create_for_surface(tmp); var canvasPattern = new CanvasPattern(pattern, rep);
- Parameters:
- {Pattern} pat
- pattern
- {String} rep
- repeat, repeat-x, repeat-y or no-repeat
- See:
Field Detail
{Pattern}
pattern
a MGraphics Pattern.
- Example:
var rep = "repeat-y"; var pattern = mgraphics.pattern_create_for_surface(tmp); var canvasPattern = new CanvasPattern(pattern, rep);
{String}
repetition
String to defines the repetition modes. Possible values are: repeat, repeat-x, repeat-y or no-repeat
- Example:
var rep = "repeat-y"; var pattern = mgraphics.pattern_create_for_surface(tmp); var canvasPattern = new CanvasPattern(pattern, rep);