Classes


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

Class Summary
Constructor Attributes Constructor Name and Description
 
CanvasPattern(pat, rep)
A CanvasPattern with MGraphics Pattern and repetition settings for that pattern.
Field Summary
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
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);

©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 2013-3-2