from()
Converts other objects to a quadrille
. Either an image, or
a bitboard represented as a big-endian and row-major ordering integer value.
from(image, [coherence])
from(bitboard, pattern)
image | p5.Image |
coherence | [boolean]: define whether or not to use spatial coherence to convert image default is false |
bitboard | number: integer bitboard value |
pattern | p5.Image | p5.Graphics | p5.Color | array | object | string | number |