Skip to content

Instantly share code, notes, and snippets.

@mimetaur
Created June 19, 2018 22:54
Show Gist options
  • Select an option

  • Save mimetaur/f05b94c73984a2a232a45ec077f1c939 to your computer and use it in GitHub Desktop.

Select an option

Save mimetaur/f05b94c73984a2a232a45ec077f1c939 to your computer and use it in GitHub Desktop.
Sketch 5 / Noise Cull Attribute Wrangle
float noise_freq = ch("noise_freq");
float threshold = ch("threshold");
vector seed = @P * noise_freq;
// let downstream nodes access this value
f@noiseval = noise(seed);
if (@noiseval < threshold) {
removepoint(0, i@ptnum);
}
// shade the circles by noise value
@Cd = fit(@noiseval, 0, 1, 0.1, 1.0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment