-
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
/* | |
* 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 |
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
/* | |
* 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
# 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
import sys | |
import re | |
import os | |
from pathlib import Path | |
from shutil import copyfile | |
import argparse | |
import logging | |
logging.getLogger(__name__) |
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
/* This script is a quick hack to extract the HEX colors | |
from color.adobe.com and save it to the clipboard as a java array | |
I created this to import the colors in Processing. | |
*/ | |
let selector = '[class^=ColorModes__colorValue_'; | |
let elements = Array.from(document.querySelectorAll(selector)); | |
elements = elements.filter(el => el.innerText.startsWith("#")).map(el => el.innerText); | |
elements = elements.map(i => "0xFF" + i.replace("#","")); | |
[...new Set(elements)].toString(); |
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
Sub ChangeTextColors() | |
Dim oSl As Slide | |
Dim oSh As Shape | |
Dim x As Long | |
Dim lOldColor As Long | |
Dim lNewColor As Long | |
' Set lOldcolor to the RGB value you're looking for | |
lOldColor = RGB(205, 32, 38) |
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
/*** | |
* This script ungroups all items recursivele, and moves path items to 4 layers, using a round-robin approach. | |
* | |
* Context: spliting a SVG created for plotting with 4 different pen colors. | |
* In my workflow the SVGs are created with code using the Processing environment. | |
* | |
* | |
* Tested on: Illustrator CC 2020 only | |
* Reminder to self: ESTK is compatible with ECMA 3 | |
* |
OlderNewer