tileDisplay
#
Static method for drawing cell tiles.
Used by drawQuadrille.
Example #
code
function setup() {
createCanvas(105, 105);
}
function draw() {
background('yellow');
Quadrille.tileDisplay( { graphics: this, outlineWeight: 9 } );
}
Syntax #
Quadrille.tileDisplay({graphics, [col], [row], [width], [height], [cellLength], [outline], [outlineWeight]})
Parameters #
parameter | description |
---|---|
graphics | p5.Graphics: renderer target |
col | Number: cell col number [0..width] default is 0 |
row | Number: cell row number [0..height] default is 0 |
width | Number: total number of columns default is 1 |
height | Number: total number of rows default is 1 |
cellLength | Number: edge length in pixels default is Quadrille.cellLength |
outline | p5.Color representation: edge color default is Quadrille.outline |
outlineWeight | Number: edge weight default is Quadrille.outlineWeight. Use 0 to discard all edges |