Releases: objetos/p5.quadrille.js
Releases · objetos/p5.quadrille.js
Release of p5.quadrille.js-2.0.6
Changelog
screenRow
& screenCol
fixed.
Release of p5.quadrille.js-2.0.5
Changelog
isObject
condition doesn't allow null
values.
Release of p5.quadrille.js-2.0.4
Changelog
All config options follow camelCase
.
Release of p5.quadrille.js-2.0.3
Changelog
static display methods refactored.
Release of p5.quadrille.js-2.0.2
Changelog
Backwards compatibility with v1.x improvements.
Release of p5.quadrille.js-2.0.1
Changelog
Quadrille
inheritance fixed for array
and object
cell contents display.
For a detailed changelog of version 2, please see here.
Release of p5.quadrille.js-2.0.0
Changelog
New methods
toBigInt()
converts a quadrille to a BigInt representation. Note that thetoInt
method has been discarded.row(row)
returns the given row as a new quadrille instance.search(pattern)
searches forpattern
within the quadrille and returns an array of{row, col}
matches.
Quadrille instantiation
The createQuadrille
method now accepts the following additional constructors:
createQuadrille()
: Creates an 8x8 quadrille filled with a chessboard pattern. It's equivalent tocreateQuadrille(8, 8).fill()
(see below).createQuadrille(fen)
: Creates a quadrille with the chess board position described by the given fen.createQuadrille(width, image)
: Converts image (either a p5.Image or a p5.Graphics) into a quadrille.createQuadrille(width, image, coherence)
: Converts image (either a p5.Image or a p5.Graphics) into a pixelated quadrille.createQuadrille(width, bigint, value)
: Converts a bigint into a quadrille pattern, filling 1 (or on) bits with the specified value.
Other API additions
fill()
: without parameters, fills the quadrille with a chessboard pattern.
API changes
Quadrille.AND
,Quadrille.OR
,Quadrille.XOR
,Quadrille.DIFF
andQuadrille.NEG
have becomeQuadrille.and
,Quadrille.or
,Quadrille.xor
,Quadrille.diff
andQuadrille.neg
, respectively.Quadrille.OP
has becomeQuadrille.merge
.Quadrille.NUMBER
,Quadrille.COLOR
,Quadrille.IMAGE
,Quadrille.STRING
,Quadrille.TILE
,Quadrille.ARRAY
andQuadrille.OBJECT
have becomeQuadrille.numberDisplay
,Quadrille.colorDisplay
,Quadrille.imageDisplay
,Quadrille.stringDisplay
,Quadrille.tileDisplay
,Quadrille.arrayDisplay
andQuadrille.objectDisplay
, respectively.Quadrille.TEXT_COLOR
,Quadrille.TEXT_ZOOM
,Quadrille.OUTLINE
,Quadrille.OUTLINE_WEIGHT
,Quadrille.CELL_LENGTH
andQuadrille.BACKGROUND
have becomeQuadrille.textColor
,Quadrille.textZoom
,Quadrille.outline
,Quadrille.outlineWeight
,Quadrille.cellLength
andQuadrille.background
.
Release of p5.quadrille.js-1.4.7
Changelog
- Implementation of the iteration protocol and thus a
quadrille
instance now supports the for...of loop.
Release of p5.quadrille.js-1.4.6
Changelog
toImage
converter method.drawQuadrille
cells
param.
Release of p5.quadrille.js-1.4.5
Changelog
- Mutable methods can take
null
pattern parameters to clear cells. - Code refactored:
rand
asrand(times, pattern = null)
.- Prefer
fill
,read
andvisitQuadrille
to low level calls. - Code modernized to the rest parameter syntax.