Skip to content

Instantly share code, notes, and snippets.

View marcedwards's full-sized avatar

Marc Edwards marcedwards

View GitHub Profile
@marcedwards
marcedwards / oledtest.pde
Created October 20, 2018 05:29
OLED black smearing test for Processing 3.4
// 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 / counter.pde
Created June 6, 2018 12:36
Processing source code for a counter that displays seconds and 100ths of a second.
// 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() {
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";
#!/bin/sh
function moveAssetImages
{
usage="usage: moveAssetImages /path/to/folderOfImages /path/to/Images.xcassets"
sourceDir=$1
assetsDir=$2
if [ $# != 2 ]; then