Created
June 19, 2018 22:54
-
-
Save mimetaur/f05b94c73984a2a232a45ec077f1c939 to your computer and use it in GitHub Desktop.
Sketch 5 / Noise Cull Attribute Wrangle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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