Skip to content

Instantly share code, notes, and snippets.

View marcedwards's full-sized avatar

Marc Edwards marcedwards

View GitHub Profile
@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 / 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 / splitlines.pde
Last active April 9, 2021 19:07
Split Lines in Processing
//
// Split 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/1212718884224040965
//
// Very, very, very heavily inspired by this animation:
@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 / voronoi.pde
Last active May 6, 2020 17:45
Some wiggly voronoi in Processing
//
// Some wiggly voronoi.
// Created using Processing 3.5.4.
//
// Code by @marcedwards from @bjango.
//
// A GIF of this code can be seen here:
// https://twitter.com/marcedwards/status/1258000317804732416
//
@marcedwards
marcedwards / woven.pde
Last active May 12, 2020 04:44
Woven lines in Processing
//
// Woven lines.
// Created using Processing 3.5.4.
//
// Code by @marcedwards from @bjango.
//
// A GIF of this code can be seen here:
// https://twitter.com/marcedwards/status/1238436611785773057
//
@marcedwards
marcedwards / rainbowsphere.pde
Last active June 5, 2020 23:48
Rainbow Sphere in Processing 3.5.4
//
// Rainbow Sphere.
// Created using Processing 3.5.4.
//
// Code by @marcedwards from @bjango.
//
// A GIF of this code can be seen here:
// https://twitter.com/marcedwards/status/1261625706326286336
//
@marcedwards
marcedwards / interferenceworm.pde
Created May 20, 2020 02:01
Interference Worm in Processing
//
// Interference Worm.
// Created using Processing 3.5.4.
//
// Code by @marcedwards from @bjango.
//
color dark = #333333;
color light = #fbfbfb;
@marcedwards
marcedwards / cloudzoom.pde
Last active May 30, 2020 02:24
Cloud Zoom in Processing
//
// Cloud Zoom.
// Created using Processing 3.5.4.
//
// Code by @marcedwards from @bjango.
//
// A GIF of this code can be seen here:
// https://twitter.com/marcedwards/status/1266555783061225473
//
@marcedwards
marcedwards / zigzags.pde
Created June 2, 2020 00:42
Zigzags in Processing
//
// Zigzags.
// Created using Processing 3.5.4.
//
// Code by @marcedwards from @bjango.
//
void setup() {
size(400, 400, P2D);
frameRate(30);