Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/content/tutorials/en/hello-color-world-p5-strands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ We'll continue evolving our canvas and 3D primitive sketch as we learn more tech

<Callout title="What is a p5.strands hook?">
An access point into a shader that connects p5.js with GLSL to modify its behavior.
- This [interactive p5.strands reference sheet](https://xnze.ro/p5.strands/) lists all hooks, as well as all the p5.js and GLSL functions or variable you can use in p5.strands
- [p5.strands Reference Sheet](https://xnze.ro/p5.strands/), a quick interactive guide by Kit Kuksenok
</ Callout>

With p5.strands we can apply randomness to a color equation, creating visually smooth organic textures like clouds, as well as rougher textures found in crystals, by using the [`noise()`](/reference/p5/noise) p5.js built-in function with a hook (e.g. [`pixelInputs`](/reference/p5/pixelInputs/)) instead of implementing GLSL algorithms from scratch.
Expand Down Expand Up @@ -291,9 +291,9 @@ Experiment with different inputs for the cloud texture:

#### sketch with GLSL
<EditableSketch scrollable={true} code={`
// Using GLSL requires
// over 180 lines of code,
// as a noise function must
// GLSL sketch
// Over 180 lines of code
// A noise function must
// be defined manually

let shaderCanvas;
Expand Down Expand Up @@ -1017,4 +1017,4 @@ Feel free to submit your p5.strands explorations here:
- [p5.strands Community Workshop](https://openprocessing.org/curation/90883), OpenProcessing Curation
</ Callout>

p5.strands is in [active development](https://processingfoundation.org/blog/p5js-21-and-22-expanding-graphics-avenues-with-p5strands-improvements-and-webgpu/) by the community. If you want to get involve, join our [discord server](https://discord.com/invite/gH3VcRKhen), we'll be happy to meet you!
p5.strands is in [active development](https://processingfoundation.org/blog/p5js-21-and-22-expanding-graphics-avenues-with-p5strands-improvements-and-webgpu/) by the community. If you want to get involve, join our [discord server](https://discord.p5js.org), we'll be happy to meet you!
Loading