Q5xjs Versions Save

A small and fast alternative (experimental) implementation of p5.js

0.0.2.1

3 years ago
  • fix random() with no arguments
  • fix background() scaling

0.0.2

3 years ago

What's New

  • new randomGenerator() command that allows the user to the flavour of the PRNG. Current options: LCG or SHR3. If you have a suggestion for another generator that you think would be useful complement, please feel free to open an Issue/PR!
  • massive speed improvement to noiseSeed() (by using an inlined, fast (crappy) PRNG (SHR3) for generating the lookup table).
  • Implement skipping of invisible draw commands in response to this benchmark (thanks naoto_hieda!). When using stroke() or fill() with a completely transparent color, it'll be treated as if noStroke() or noFill() is called, so the overhead is pretty negligible.
  • Small fix that allows a CSS color string to be used with background()
  • Small fix to make initial random seed more random, in response to this issue (thanks oori!)

0.0.1

3 years ago