Skip to content

Instantly share code, notes, and snippets.

Avatar

Marc Edwards marcedwards

View GitHub Profile
@marcedwards
marcedwards / accumulation.pde
Last active Mar 15, 2021
Perlin noise and accumulation in Processing
View accumulation.pde
//
// Perlin noise and accumulation.
// Created using Processing 4.0a3.
//
// Code by @marcedwards from @bjango.
//
// A GIF of this code can be seen here:
// https://twitter.com/marcedwards/status/1370206924591960065
//
@marcedwards
marcedwards / displaysizes.txt
Last active Apr 3, 2021
iPhone, iPad, and Apple Watch display sizes
View displaysizes.txt
### Points and display type
PPI is points per inch below, not pixels per inch. Not all models are listed, just the first model with a new display size. Diamond, RGB Stripe and Pentile RGB refer to the subpixel patterns.
iPhone 1 = 320×480 at 163PPI sRGB IPS LCD RGB Stripe
iPhone 4 = 320×480 at 163PPI sRGB IPS LCD RGB Stripe
iPhone 5 = 320×568 at 163PPI sRGB IPS LCD RGB Stripe
iPhone 6 = 375×667 at 163PPI sRGB IPS LCD RGB Stripe
iPhone 6 Plus = 414×736 at 153.5PPI sRGB IPS LCD RGB Stripe
iPhone 7 = 375×667 at 163PPI P3 IPS LCD RGB Stripe
@marcedwards
marcedwards / theonlywayisup.pde
Created Feb 6, 2021
An animated arrow using lots of points in Processing
View theonlywayisup.pde
//
// The only way is up.
// Created using Processing 4.0a3.
//
// Code by @marcedwards from @bjango.
//
// A GIF of this code can be seen here:
// https://twitter.com/marcedwards/status/1357998635447799810
//
@marcedwards
marcedwards / retrotriangles.pde
Created Sep 22, 2020
Retro triangles in Processing
View retrotriangles.pde
//
// Retro triangles.
// 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/1307655695819403265
//
@marcedwards
marcedwards / zigzags.pde
Created Jun 2, 2020
Zigzags in Processing
View zigzags.pde
//
// Zigzags.
// Created using Processing 3.5.4.
//
// Code by @marcedwards from @bjango.
//
void setup() {
size(400, 400, P2D);
frameRate(30);
@marcedwards
marcedwards / cloudzoom.pde
Last active May 30, 2020
Cloud Zoom in Processing
View cloudzoom.pde
//
// 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 / interferenceworm.pde
Created May 20, 2020
Interference Worm in Processing
View interferenceworm.pde
//
// Interference Worm.
// Created using Processing 3.5.4.
//
// Code by @marcedwards from @bjango.
//
color dark = #333333;
color light = #fbfbfb;
@marcedwards
marcedwards / rainbowsphere.pde
Last active Jun 5, 2020
Rainbow Sphere in Processing 3.5.4
View rainbowsphere.pde
//
// 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 / woven.pde
Last active May 12, 2020
Woven lines in Processing
View woven.pde
//
// 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 / voronoi.pde
Last active May 6, 2020
Some wiggly voronoi in Processing
View voronoi.pde
//
// 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
//