Skip to content

Instantly share code, notes, and snippets.

View nossidge's full-sized avatar

Paul Thompson nossidge

View GitHub Profile
@nossidge
nossidge / NoisyCrossesShapedPixelsGlitch
Last active December 13, 2015 20:49
NoisyCrossesShapedPixelsGlitch
// Create a symmetrical diamond shaped (sideways square) "snowflake".
// This can be rotated 45° to make a square.
// Create 1/8th of the shape and reflect that for the remaining 7/8ths.
// Make it a repeatable function with a parameter for the center XY.
// New pattern generated on key press.
// Animated GIF generated and saved on form unload.
// ToDo: Store as class? Then it would be copyable...
// Keys:
@nossidge
nossidge / NoisyCrosses
Last active December 13, 2015 20:49
NoisyCrosses
// Create a symmetrical diamond shaped (sideways square) snowflake.
// Create 1/8th of the shape and reflect that for the remaining 7/8ths.
// Make it a repeatable function with a parameter for the center XY.
// New pattern generated on key press.
// Animated GIF generated and saved on form unload.
// ToDo: Store as class? Then it would be copyable.
// Save as animated GIF
// Save as animated GIF
// Requires gifAnimation Processing Library
// http://www.extrapixel.ch/processing/gifAnimation/
import gifAnimation.*;
GifMaker gifExport;
boolean saveToGif = true;
// The time between GIF frames
int frameDelay = 60;
@nossidge
nossidge / CrossOfJaggedCircles
Last active December 14, 2015 10:19
CrossOfJaggedCircles
// Save as animated GIF
// Requires gifAnimation Processing Library
// http://www.extrapixel.ch/processing/gifAnimation/
import gifAnimation.*;
GifMaker gifExport;
boolean saveToGif = false;
// The time between GIF frames
int frameDelay = 60;
@nossidge
nossidge / SpinningJaggedTargets
Created March 6, 2013 17:01
SpinningJaggedTargets
// Save as animated GIF
// Requires gifAnimation Processing Library
// http://www.extrapixel.ch/processing/gifAnimation/
import gifAnimation.*;
GifMaker gifExport;
boolean saveToGif = false;
// The time between GIF frames
int frameDelay = 60;
@nossidge
nossidge / BlurredWiggleRectangle
Created March 7, 2013 15:11
BlurredWiggleRectangle
// Save as animated GIF
// Requires gifAnimation Processing Library
// http://www.extrapixel.ch/processing/gifAnimation/
import gifAnimation.*;
GifMaker gifExport;
boolean saveToGif = true;
// The time between GIF frames
int frameDelay = 50;
@nossidge
nossidge / Snowball
Last active December 15, 2015 14:09
C++ Generate valid snowball poems, using input file of example text and Markov chains to help make it grammatically correct.
/*
~~ Snowball Poem ~~
Snowball (also called a Chaterism): A poem in which each line is a single word,
and each successive word is one letter longer. One of the constrained writing
techniques invented by the Oulipo (Workshop of Potential Literature).
~~ Program Description ~~
This program takes input from the file "input-raw.txt". It examines the file for
@nossidge
nossidge / ASCII 3D
Last active December 20, 2015 22:08
Processing. My prototype of Sean Howard's 83rd game mechanic, ASCII 3D. http://www.squidi.net/three/entry.php?id=83
//
// ASCII 3D
//
// Idea by Sean Howard:
// http://www.squidi.net/three/entry.php?id=83
//
// Prototype code by Paul Thompson
//
////////////////////////////////////////////////////////////////////////////////
// Save as animated GIF
// Requires gifAnimation Processing Library
// http://www.extrapixel.ch/processing/gifAnimation/
import gifAnimation.*;
GifMaker gifExport;
boolean saveToGif = false;
int gifFrameDelay = 180;
int gifFrameCount = 0;
@nossidge
nossidge / no_longer_a_place.bash
Created February 3, 2014 16:02
"no longer a place for"
#!/bin/bash
# http://www.independent.co.uk/news/uk/politics/house-of-lords-is-no-longer-a-place-for-fine-dining-peers-gripe-9102580.html
places=(
"House of Lords"
"Angel of the North"
"Jubilee Line"
"Wembley Stadium"
"Canterbury Cathedral"
"Bridge on the River Kwai"