Skip to content

Releases: objetos/p5.quadrille.js

Release of p5.quadrille.js-2.0.6

01 Nov 22:50
Compare
Choose a tag to compare

Changelog

screenRow & screenCol fixed.

Release of p5.quadrille.js-2.0.5

31 Oct 22:06
Compare
Choose a tag to compare

Changelog

isObject condition doesn't allow null values.

Release of p5.quadrille.js-2.0.4

31 Oct 17:11
Compare
Choose a tag to compare

Changelog

All config options follow camelCase.

Release of p5.quadrille.js-2.0.3

30 Oct 14:50
Compare
Choose a tag to compare

Changelog

static display methods refactored.

Release of p5.quadrille.js-2.0.2

29 Oct 10:39
Compare
Choose a tag to compare

Changelog

Backwards compatibility with v1.x improvements.

Release of p5.quadrille.js-2.0.1

28 Oct 23:15
Compare
Choose a tag to compare

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

27 Oct 20:23
Compare
Choose a tag to compare

Changelog

New methods

  • toBigInt() converts a quadrille to a BigInt representation. Note that the toInt method has been discarded.
  • row(row) returns the given row as a new quadrille instance.
  • search(pattern) searches for pattern 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 to createQuadrille(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 and Quadrille.NEG have become Quadrille.and, Quadrille.or, Quadrille.xor, Quadrille.diff and Quadrille.neg, respectively.
  • Quadrille.OP has become Quadrille.merge.
  • Quadrille.NUMBER, Quadrille.COLOR, Quadrille.IMAGE, Quadrille.STRING, Quadrille.TILE, Quadrille.ARRAY and Quadrille.OBJECT have become Quadrille.numberDisplay, Quadrille.colorDisplay, Quadrille.imageDisplay, Quadrille.stringDisplay, Quadrille.tileDisplay, Quadrille.arrayDisplay and Quadrille.objectDisplay, respectively.
  • Quadrille.TEXT_COLOR, Quadrille.TEXT_ZOOM, Quadrille.OUTLINE, Quadrille.OUTLINE_WEIGHT, Quadrille.CELL_LENGTH and Quadrille.BACKGROUND have become Quadrille.textColor, Quadrille.textZoom, Quadrille.outline, Quadrille.outlineWeight, Quadrille.cellLength and Quadrille.background.

Release of p5.quadrille.js-1.4.7

29 Sep 21:29
Compare
Choose a tag to compare

Changelog

Release of p5.quadrille.js-1.4.6

27 Sep 14:50
Compare
Choose a tag to compare

Changelog

  • toImage converter method.
  • drawQuadrille cells param.

Release of p5.quadrille.js-1.4.5

18 Sep 22:16
Compare
Choose a tag to compare

Changelog

  1. Mutable methods can take null pattern parameters to clear cells.
  2. Code refactored:
    1. rand as rand(times, pattern = null).
    2. Prefer fill, read and visitQuadrille to low level calls.
    3. Code modernized to the rest parameter syntax.