Created
April 19, 2016 15:30
-
-
Save nick3499/714ef47af52cd8276cebfa49685edfd6 to your computer and use it in GitHub Desktop.
Bezier. Using processing.js library.
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
| void setup () { | |
| size(1024, 576); | |
| noFill(); | |
| smooth(); | |
| colorMode(HSB, 270, 100, 100); | |
| frameRate(10); | |
| } | |
| void draw () { | |
| background(0); | |
| for (int i=0; i<150; i++) { | |
| strokeWeight(2); | |
| stroke(random(360), random(90), random(100)); | |
| bezier( | |
| random( 0, 512), random( 0, 144), | |
| random(512, 1024), random(144, 288), | |
| random( 0, 512), random(288, 432), | |
| random(512, 1024), random(432, 576)); | |
| bezier( | |
| random( 0, 512), random(432, 576), | |
| random(512, 1024), random(288, 432), | |
| random( 0, 512), random(144, 288), | |
| random(512, 1024), random( 0, 144)); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment