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 moveAssetImages.sh
#!/bin/sh
function moveAssetImages
{
usage="usage: moveAssetImages /path/to/folderOfImages /path/to/Images.xcassets"
sourceDir=$1
assetsDir=$2
if [ $# != 2 ]; then
View System font family stack
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
@marcedwards
marcedwards / counter.pde
Created Jun 6, 2018
Processing source code for a counter that displays seconds and 100ths of a second.
View counter.pde
// A counter that displays seconds and 100ths of a second.
// By @marcedwards from @bjango.
//
// You’ll need to use Tools › Create Font to convert a font file to a Processing .vlw file.
// Created using Processing 3.3.7.
PFont font;
float time = 0;
void draw() {
@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();
@marcedwards
marcedwards / colourspinner.pde
Last active Dec 23, 2018
A colourful loading spinner for Processing 3.3.7
View colourspinner.pde
// A colourful loading spinner.
// By @marcedwards from @bjango.
void setup() {
size(512, 512, P2D);
frameRate(30);
smooth(8);
noFill();
strokeWeight(10);
}
@marcedwards
marcedwards / mkbhd-intro.pde
Created Sep 27, 2018
An attempt at recreating the intro to MKBHD’s awesome videos, using Processing.
View mkbhd-intro.pde
// An attempt at recreating the intro to MKBHD’s awesome videos.
// MKBHD’s videos can be seen here: https://www.youtube.com/marquesbrownlee
// A GIF of the result can be seen here: https://i.imgur.com/EAfI0uJ.gif
//
// Code by @marcedwards from @bjango.
float n1 = 0;
float n2 = 0;
float ease = 0;
@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 / loadingspinner.pde
Created May 30, 2018
A loading spinner with 6 dots
View loadingspinner.pde
// A loading spinner with 6 dots.
// By @marcedwards from @bjango.
//
// Pretty messy and hacked together, but it works. ¯\_(ツ)_/¯
// Created using Processing 3.3.7.
float scaler = 0.24 * 4; // Scale the entire design.
float scalerb = 4; // Scale the entire design more.
int frame = 0;
@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 / spinner.pde
Last active Jun 26, 2019
A loading spinner for Processing 3.3.7
View spinner.pde
// A loading spinner.
// By @marcedwards from @bjango.
void setup() {
size(300, 300, P2D);
frameRate(30);
smooth(8);
noFill();
stroke(255);
strokeWeight(6);
You can’t perform that action at this time.