-
Vector festival (Toronto) Deadline: February 1st http://vectorfestival.org/
This file contains 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
# example on how to save Processing sketch in Python mode | |
# copy and paste to your sketch | |
from datetime import datetime | |
def keyPressed(): | |
if key == 'S' or key == 's': | |
saveSketch() | |
# example on how to save Processing sketch in Python mode |
This file contains 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
/* | |
* Function for saving the generated image into a file when you press "S" or "B" key. | |
* Files will be saved to /out folder, with name: [Sketch name]_[Timestamp].jpg | |
* | |
* It works in two ways: | |
* 1. S key (BASIC) | |
* If you press the S key ("Save"), it will save the contents of the screen. | |
* The image is saved in the same resolution as your sketch size. In other words, | |
* the image will have the same size as "height" by "width" pixels. | |
* |
This file contains 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
/* | |
* Voronoi visualization | |
* Copy of the first approach by @The_ArtOfCode, shown at https://www.youtube.com/watch?v=l-07BXzNdPw | |
* | |
* 27.07.2018 | |
*/ | |
vec2 N22(vec2 p) { | |
vec3 a = fract(p.xyx*vec3(123.34,234.34,345.65)); | |
a += dot(a, a+34.45); | |
return fract(vec2(a.x*a.y, a.y * a.z)); |
This file contains 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
/* | |
* OpenSimplex Noise in Java. | |
* by Kurt Spencer | |
* | |
* v1.1 (October 5, 2014) | |
* - Added 2D and 4D implementations. | |
* - Proper gradient sets for all dimensions, from a | |
* dimensionally-generalizable scheme with an actual | |
* rhyme and reason behind it. | |
* - Removed default permutation array in favor of |
This file contains 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
/* | |
* OpenSimplex Noise in Java. | |
* by Kurt Spencer | |
* | |
* v1.1 (October 5, 2014) | |
* - Added 2D and 4D implementations. | |
* - Proper gradient sets for all dimensions, from a | |
* dimensionally-generalizable scheme with an actual | |
* rhyme and reason behind it. | |
* - Removed default permutation array in favor of |
NewerOlder