Skip to content

Instantly share code, notes, and snippets.

View marcedwards's full-sized avatar

Marc Edwards marcedwards

View GitHub Profile
@marcedwards
marcedwards / twister.pde
Last active April 16, 2021 12:43
A twisty 3D effect using a 2D image, created with Processing
// A sin-y, wobbly, twisty, 3D-looking thing that slices up an image to create its effect.
// For more information and to download the image required, visit:
// https://dribbble.com/shots/5843126-Twisty-3D-effect-using-a-2D-image
//
// Place the image inside a folder called “data” alongside the Processing sketch for it to work.
// Created using Processing 3.4.
//
// Code by @marcedwards from @bjango.
PImage twist;
@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);
@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 / 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 / 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
//
@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 / 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 / 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 / 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 / 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
//