| weight | 3 |
|---|---|
| draft | false |
| title | toImage(args) |
Returns a p5.Image representation of this quadrille.
toImage(filename, [{[filter], [tileDisplay], [imageDisplay], [colorDisplay], [stringDisplay], [numberDisplay], [booleanDisplay], [bigintDisplay], [symbolDisplay], [arrayDisplay], [objectDisplay], [cellLength], [outlineWeight], [outline], [textColor], [textZoom]}])
| Param | Description |
|---|---|
filename |
String: image name; png and jpg extensions are supported |
tileDisplay |
Function: empty cell drawing procedure; default is [Quadrille.tileDisplay]({{< ref "display_fns" >}})1. Use 0, null, or undefined to discard all edges |
imageDisplay |
Function: drawing procedure for cells containing a p5.Image; default is [Quadrille.imageDisplay]({{< ref "display_fns" >}}) |
colorDisplay |
Function: drawing procedure for cells containing p5.Color; default is [Quadrille.colorDisplay]({{< ref "display_fns" >}}) |
stringDisplay |
Function: drawing procedure for string-filled cells; default is [Quadrille.stringDisplay]({{< ref "display_fns" >}}) |
numberDisplay |
Function: drawing procedure for number-filled cells; default is [Quadrille.numberDisplay]({{< ref "display_fns" >}}) |
booleanDisplay |
Function: drawing procedure for boolean-filled cells; default is [Quadrille.booleanDisplay]({{< ref "display_fns" >}}) |
bigintDisplay |
Function: drawing procedure for BigInt-filled cells; default is [Quadrille.bigintDisplay]({{< ref "display_fns" >}}) |
symbolDisplay |
Function: drawing procedure for Symbol-filled cells (no default provided) |
arrayDisplay |
Function: drawing procedure for array-filled cells (no default provided) |
objectDisplay |
Function: drawing procedure for object-filled cells (no default provided) |
filter |
Function, Set, or Array: selects which cells to export; see [iterators]({{< ref "iterators" >}}) for accepted filter types |
cellLength |
Number: edge length in pixels; default is [Quadrille.cellLength]({{< ref "cell_length" >}}) |
outlineWeight |
Number: edge weight; default is [Quadrille.outlineWeight]({{< ref "outline_weight" >}}) |
outline |
p5.Color: edge color; default is [Quadrille.outline]({{< ref "outline" >}}) |
textColor |
p5.Color: text color; default is [Quadrille.textColor]({{< ref "text_color" >}}) |
textZoom |
Number: text zoom level; default is [Quadrille.textZoom]({{< ref "text_zoom" >}}) |
Footnotes
-
This function allows implementing other regular tilings different from the default square tiling. ↩