Skip to content

Instantly share code, notes, and snippets.

View marcedwards's full-sized avatar

Marc Edwards marcedwards

View GitHub Profile
@marcedwards
marcedwards / accumulation.pde
Last active June 1, 2021 07:14
Perlin noise and accumulation in Processing
//
// 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 November 16, 2023 06:52
iPhone, iPad, and Apple Watch display sizes
### 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 February 6, 2021 10:39
An animated arrow using lots of points in Processing
//
// 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 September 22, 2020 05:11
Retro triangles in Processing
//
// 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 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);
@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 / 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 / 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 / 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 / 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
//