Skip to content

Instantly share code, notes, and snippets.

Marc Edwards marcedwards

Block or report user

Report or block marcedwards

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View min-device-pixel-ratio.md

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
View cubesanddiamonds.pde
//
// 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 Jul 21, 2019
Zooming spiral in Processing
View zoomingspiral.pde
//
// 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 Aug 19, 2019
Cubes of cubes in Processing
View cubesofcubes.pde
//
// 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 Jun 28, 2019
Circles of dots in Processing
View circlesofdots.pde
//
// 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 / trianglesintriangles.pde
Last active May 27, 2019
Triangles in triangles in triangles in triangles in Processing
View trianglesintriangles.pde
//
// 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 Apr 9, 2019
Perlin noise text displacement
View perlintextdisplacement.pde
//
// Perlin noise text displacement.
// Created using Processing 3.5.3.
//
// Code by @marcedwards from @bjango.
//
PGraphics textbuffer;
void setup() {
@marcedwards
marcedwards / easeOverSin.pde
Created Mar 4, 2019
Some sine wave timing fun, using 2 or 3 sections with separate ease-in-out curves.
View easeOverSin.pde
//
// 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 / twister.pde
Last active Aug 8, 2019
A twisty 3D effect using a 2D image, created with Processing
View twister.pde
// 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 / oledtest.pde
Created Oct 20, 2018
OLED black smearing test for Processing 3.4
View oledtest.pde
// OLED black smearing test for Processing 3.4.
// Black smearing = changing pixels to and from pure black is slower than changing to and from other colours.
//
// Code by @marcedwards from @bjango.
void setup() {
size(360, 360, P2D);
frameRate(60);
smooth(8);
noStroke();
You can’t perform that action at this time.