Skip to content

Instantly share code, notes, and snippets.

View marcedwards's full-sized avatar

Marc Edwards marcedwards

View GitHub Profile
@marcedwards
marcedwards / squigglyline.pde
Last active January 18, 2020 04:35
A squiggly line that becomes less squiggly, in Processing
//
// Squiggly Line.
// Created using Processing 3.5.4.
//
// Code by @marcedwards from @bjango.
//
// This was a response to a tweet :)
// https://twitter.com/WalterStephanie/status/1218183269361049600
//
// A GIF of this code can be seen here:
@marcedwards
marcedwards / swatches.pde
Created December 20, 2019 06:53
HEX to swatches in Processing
void setup() {
size(400, 400);
noLoop();
noStroke();
}
void draw() {
background(0);
color[] colors = { #811eff, #ff0000, #811eff, #ff0000, #00ff00, #00ffff, #811eff, #ff0000, #811eff, #ff0000, #00ff00, #00ffff, #811eff, #ff0000, #811eff, #ff0000, #00ff00, #00ffff, #811eff, #ff0000, #811eff, #ff0000, #00ff00, #00ffff };
@marcedwards
marcedwards / zigzagspiral.pde
Last active December 17, 2019 10:44
A zigzag-y spiral thing made in Processing
//
// Zigzag spiral.
// Created using Processing 3.5.3.
//
// Code by @marcedwards from @bjango.
//
// A GIF of this code can be seen here:
// https://twitter.com/marcedwards/status/1206887873338691584
//
@marcedwards
marcedwards / outofsynclines.pde
Last active November 23, 2019 11:01
Out of sync lines in Processing
//
// Out of sync lines.
// Created using Processing 3.5.3.
//
// Code by @marcedwards from @bjango.
//
// A GIF of this code can be seen here:
// https://twitter.com/marcedwards/status/1195668786340233221
//
@marcedwards
marcedwards / trianglesintriangles.pde
Last active November 22, 2019 22:03
Triangles in triangles in triangles in triangles in Processing
//
// Triangles in triangles in triangles in triangles…
// Created using Processing 3.5.3.
//
// Code by @marcedwards from @bjango.
//
// A GIF of this code can be seen here:
// https://dribbble.com/shots/6539126-Triangles-in-triangles
//
@marcedwards
marcedwards / perlintextdisplacement.pde
Created April 9, 2019 12:18
Perlin noise text displacement
//
// Perlin noise text displacement.
// Created using Processing 3.5.3.
//
// Code by @marcedwards from @bjango.
//
PGraphics textbuffer;
void setup() {
@marcedwards
marcedwards / cubesofcubes.pde
Last active August 19, 2019 09:26
Cubes of cubes in Processing
//
// Cubes of cubes.
// Created using Processing 3.5.3.
//
// Code by @marcedwards from @bjango.
//
// A GIF of this code can be seen here:
// https://twitter.com/marcedwards/status/1152196928853049344
//
@marcedwards
marcedwards / Vinyl vs CD vs digital audio
Last active June 28, 2019 10:45
Vinyl vs CD vs digital audio
# Vinyl vs CD vs digital audio
I thought I’d provide some feedback on this discusion.
At one point in my career, I thought I was going to be a music producer, and I’ve spent about 20 years writing, recording and producing music. Writing mostly electronic music played by DJs, and given the timeframe we’re talking about, I actually started mixing (as in the audio engineer definition) while vinyl accounted for close to 100% of sales, so everything we did ended up being mastered for vinyl.
As part of this process, we’d send every single release off to be mastered for vinyl, and receive an acetate (a one off copy), a test pressing (initial pressings using the vinyl master), or the final release pressing and be able to compare it to not only a 16bit/44.1khz master of the exact same recording, but we were also often able to compare directly to a 24bit/44.1khz master and 24bit/44.1khz pre-mastered version of the exact same song. And all typically on studio nearfield masters and really nice headphones.
Keep in mi
@marcedwards
marcedwards / loadingspinner.pde
Created May 30, 2018 02:25
A loading spinner with 6 dots
// A loading spinner with 6 dots.
// By @marcedwards from @bjango.
//
// Pretty messy and hacked together, but it works. ¯\_(ツ)_/¯
// Created using Processing 3.3.7.
float scaler = 0.24 * 4; // Scale the entire design.
float scalerb = 4; // Scale the entire design more.
int frame = 0;
@marcedwards
marcedwards / easeOverSin.pde
Created March 4, 2019 11:58
Some sine wave timing fun, using 2 or 3 sections with separate ease-in-out curves.
//
// Some sine wave timing fun, using 2 or 3 sections with separate ease-in-out curves.
// Created using Processing 3.5.3.
//
// Code by @marcedwards from @bjango.
//
void setup() {
size(400, 400, P2D);
frameRate(60);