Skip to content

v2.0

Compare
Choose a tag to compare
@quinton-ashley quinton-ashley released this 18 Jun 19:57
· 135 commits to main since this release

v2.0.15

Fixed oklch color mode support.

sRGB vs oklch demo from @spctrm404

function setup() {
	createCanvas(400, 400);

	colorMode('rgb');
	fill('#ff0c52');
	rect(0, 0, width / 2, height);

	colorMode('oklch');
	fill(0.637, 0.28, 16.57, 1);
	rect(width / 2, 0, width / 2, height);
}

srgb_vs_oklch

v2.0.12

Made image color space the same as the canvas color space by default.

Other misc bug fixes

v2.0.6

Implemented #47 and added errors for if q5 can't parse a color string, since otherwise that'll be an FAQ.

v2.0.5

Fixed the async setup implementation (q5 needed to return the async function's Promise in global mode)

Also fixed arc not working when angleMode is set to degrees.

v2.0.0

Many of the features planned for p5.js 2.0 have already been implemented in q5! 🎉

  • modular design with a functional core that additional modules can attach to
    processing/p5.js#7014

  • a rewritten color module that has support for HDR colors and enables users to change color components via property editing which is idiomatic to JavaScript. functions like fill and stroke support css color strings. For more info see: #24
    processing/p5.js#7018

  • q5 has canvas context attribute support
    processing/p5.js#6781

  • q5's bundle size is already 70x smaller than p5 unminified and q5.min is 20x smaller than p5.min
    processing/p5.js#6776

  • async/await is supported in setup and can already be used with fetch. I also like the idea of a simple load function which I'll implement soon. #45
    processing/p5.js#6767

  • q5 has already pruned the suggested items, many of which made sense in Java Processing but were not idiomatic to JavaScript from the start. the http functions were pruned in q5 because users can now use fetch instead. Color functions like red, green, and blue were made obsolete in q5 by color instance property editing, for example colorInst.r = 50 to change the amount of red.
    processing/p5.js#7090

  • q5's askAI() provides improved debugging support compared to the FES
    processing/p5.js#6888

Other p5 issues not planned for p5 2.0: