q5js/q5.js

Beginner friendly graphics powered by WebGPU, optimized for interactive art!

JavaScript

421

610 commits

updated Oct 16, 2026

See the code

See what people are saying

SourceMessageScoreDate

https://q5js.org/

on q5.js v3.0 [video]

0

May 5, 2025

README

Visit q5js.org! 💫

q5 was designed to make creative coding fun and accessible for educators, artists, designers, and beginners. 🤝

  • 100x faster than p5.js ⚡️
  • Python support 🐍
  • beginner friendly documentation 📚
  • compatible with popular addons, including p5.sound, ml5.js, and q5play 🎮
  • full API translation to Spanish 💃🏽
  • no dependencies, ~140kb minified 📦
  • free and open source 🆓
await Canvas(200);
circle(0, 0, 80);

Documentation

The q5 learn pages have interactive mini-examples.

See the wiki for extended documentation.

Support q5 💙

q5 is open source. Anyone can use it for free under the terms of the LGPL. 🎉

We need your support though! If you enjoy using q5, please donate via GitHub Sponsors, ko-fi, or Patreon.

Contributing

Are you interested in writing code for q5.js or improving the q5 ecosystem? Contributions are welcome!

Please report issues or comment on existing issues before working on a pull request. Check out the q5 project planning board.

All contributors must agree to the code of conduct.

Licensing

q5.js was created by Quinton Ashley and contributors. It is free to use and open source licensed under the LGPLv3.

@LingDong- created the original q5xjs library which is Unlicense (public domain) licensed.

p5.js is licensed under the LGPLv2, small sections of p5' code directly copied into q5 are credited below. The rest of q5 is a new implementation of part of the p5 API. APIs are not copyrightable in the United States, as decided by the Supreme Court in the Google v Oracle case. q5 is not affiliated with The Processing Foundation.

Credits

q5 was inspired by the incredible work of Ben Fry and Casey Reas on Java Processing from 2001 to 2023, Lauren McCarthy's work on p5.js from 2013 to 2019, and all contributors to these projects.

Huge thanks to all the q5 contributors!

@evanalulu, @Tezumie, @keturn, @ormaq, @bertubi, @RedWilly, @Dukemz, @LingDong-

WebGPU MSDF text rendering: https://webgpu.github.io/webgpu-samples/?sample=textRenderingMsdf

WebGPU blendMode: https://webgpufundamentals.org/webgpu/lessons/webgpu-transparency.html

HSLtoRGB: https://stackoverflow.com/a/64090995/3792062

HSBtoHSL: https://stackoverflow.com/a/66469632/3792062

OKLCHtoRGB: https://gist.github.com/dkaraush/65d19d61396f5f3cd8ba7d1b4b3c9432 https://github.com/color-js/color.js/blob/main/src/spaces/oklch.js

A JS Implementation of Ziggurat Algorithm: http://ziggurat.glitch.me/

p5.js Vector.slerp: https://github.com/processing/p5.js/blob/v1.10.0/src/math/p5.Vector.js#L2803

p5.js random: https://github.com/processing/p5.js/blob/1.1.9/src/math/noise.js

art
creative-coding
design
education
generative-art
graphics
interactive-art
p5
p5js
p5xjs
q5
q5js
q5xjs

q5js/q5.js

Beginner friendly graphics powered by WebGPU, optimized for interactive art!

JavaScript

421

610 commits

updated Oct 16, 2026

See the code

See what people are saying

SourceMessageScoreDate

https://q5js.org/

on q5.js v3.0 [video]

0

May 5, 2025

README

Visit q5js.org! 💫

q5 was designed to make creative coding fun and accessible for educators, artists, designers, and beginners. 🤝

  • 100x faster than p5.js ⚡️
  • Python support 🐍
  • beginner friendly documentation 📚
  • compatible with popular addons, including p5.sound, ml5.js, and q5play 🎮
  • full API translation to Spanish 💃🏽
  • no dependencies, ~140kb minified 📦
  • free and open source 🆓
await Canvas(200);
circle(0, 0, 80);

Documentation

The q5 learn pages have interactive mini-examples.

See the wiki for extended documentation.

Support q5 💙

q5 is open source. Anyone can use it for free under the terms of the LGPL. 🎉

We need your support though! If you enjoy using q5, please donate via GitHub Sponsors, ko-fi, or Patreon.

Contributing

Are you interested in writing code for q5.js or improving the q5 ecosystem? Contributions are welcome!

Please report issues or comment on existing issues before working on a pull request. Check out the q5 project planning board.

All contributors must agree to the code of conduct.

Licensing

q5.js was created by Quinton Ashley and contributors. It is free to use and open source licensed under the LGPLv3.

@LingDong- created the original q5xjs library which is Unlicense (public domain) licensed.

p5.js is licensed under the LGPLv2, small sections of p5' code directly copied into q5 are credited below. The rest of q5 is a new implementation of part of the p5 API. APIs are not copyrightable in the United States, as decided by the Supreme Court in the Google v Oracle case. q5 is not affiliated with The Processing Foundation.

Credits

q5 was inspired by the incredible work of Ben Fry and Casey Reas on Java Processing from 2001 to 2023, Lauren McCarthy's work on p5.js from 2013 to 2019, and all contributors to these projects.

Huge thanks to all the q5 contributors!

@evanalulu, @Tezumie, @keturn, @ormaq, @bertubi, @RedWilly, @Dukemz, @LingDong-

WebGPU MSDF text rendering: https://webgpu.github.io/webgpu-samples/?sample=textRenderingMsdf

WebGPU blendMode: https://webgpufundamentals.org/webgpu/lessons/webgpu-transparency.html

HSLtoRGB: https://stackoverflow.com/a/64090995/3792062

HSBtoHSL: https://stackoverflow.com/a/66469632/3792062

OKLCHtoRGB: https://gist.github.com/dkaraush/65d19d61396f5f3cd8ba7d1b4b3c9432 https://github.com/color-js/color.js/blob/main/src/spaces/oklch.js

A JS Implementation of Ziggurat Algorithm: http://ziggurat.glitch.me/

p5.js Vector.slerp: https://github.com/processing/p5.js/blob/v1.10.0/src/math/p5.Vector.js#L2803

p5.js random: https://github.com/processing/p5.js/blob/1.1.9/src/math/noise.js

art
creative-coding
design
education
generative-art
graphics
interactive-art
p5
p5js
p5xjs
q5
q5js
q5xjs

Project health

npm

Latest release

4.9.1 · Oct 16, 2026

Releases this year

58

Significant stargazers

Philippe Rivière

743 followers · starred Feb 2025

mrdoob

25,624 followers · starred Feb 2025

Zach Latta

1,760 followers · starred Mar 2026

Brian Peiris

269 followers · starred Aug 2023