Navigation Menu

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 / 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 / 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 / min-device-pixel-ratio.md
Last active February 23, 2023 20:00
Device pixel ratios

Devices with -webkit-min-device-pixel-ratio: 1.0

  • All non-Retina Macs
  • Apple iPhone (1st generation)
  • Apple iPhone 3G
  • Apple iPhone 3GS
  • Apple iPad (1st generation)
  • Apple iPad 2
  • Apple iPad mini (1st generation)
  • Acer Iconia A500
@marcedwards
marcedwards / cubesanddiamonds.pde
Last active October 25, 2021 06:40
Cubes and diamonds
//
// Cubes and diamonds.
// 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/1167765622899347459
//
@marcedwards
marcedwards / zoomingspiral.pde
Last active November 16, 2022 07:39
Zooming spiral in Processing
//
// Zooming 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/1152906086615117824
//
@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 / circlesofdots.pde
Created June 28, 2019 10:43
Circles of dots in Processing
//
// Circles of dots.
// 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/1144236924095234053
//