Skip to content

Instantly share code, notes, and snippets.

@gregtemp
gregtemp / C4Workspace.m
Created June 3, 2013 01:57
Even Simpler Match Game Example
//
// C4WorkSpace.m
// Examples
//
// Created by Greg Debicki.
//
#import "C4WorkSpace.h"
@implementation C4WorkSpace {
@gregtemp
gregtemp / C4Workspace.m
Last active December 18, 2015 04:28
ShapeMorph Shapes morphing into other shapes
//
// C4WorkSpace.m
// Examples
//
// Created by Greg Debicki.
//
#import "C4WorkSpace.h"
@implementation C4WorkSpace {
@gregtemp
gregtemp / C4Workspace.m
Last active December 18, 2015 04:28
ShapeMorphMasks Shapes morphing with animated masks
//
// C4WorkSpace.m
// Examples
//
// Created by Greg Debicki.
//
#import "C4WorkSpace.h"
@implementation C4WorkSpace {
@gregtemp
gregtemp / C4Workspace.m
Last active December 18, 2015 04:28
ShapeMorphMaskMove Shapes morphing with animated masks that move when to where you touch
//
// C4WorkSpace.m
// Examples
//
// Created by Greg Debicki.
//
#import "C4WorkSpace.h"
@implementation C4WorkSpace {
@gregtemp
gregtemp / C4Workspace.m
Created June 10, 2013 21:43
MatchGame (ITP version) a simple match game
//
// C4WorkSpace.m
// Examples
//
// Created by Greg Debicki.
//
#import "C4WorkSpace.h"
@implementation C4WorkSpace {
@gregtemp
gregtemp / C4Workspace.m
Created June 10, 2013 21:44
Match Game Scamble (ITP Version) same match game, but written differently so that it's possible to scramble the images easily.
//
// C4WorkSpace.m
// Examples
//
// Created by Greg Debicki.
//
#import "C4WorkSpace.h"
@implementation C4WorkSpace {
@gregtemp
gregtemp / glitch.pde
Created June 11, 2013 07:45
Glitch processing patch
int[] mPix;
int glitch1 = 100;
int glitch2 = 10;
int rand2 = 10;
float size = 75;
void setup() {
@gregtemp
gregtemp / image3.pde
Created June 27, 2013 23:48
Processing - points from image
PImage img = loadImage("image.jpg");
PVector[] dots = new PVector[10000];
void setup() {
size (img.width, img.height);
}
void draw () {
background(255);
@gregtemp
gregtemp / videoDelay.pde
Created July 18, 2013 18:19
Video delay - Processing 2.0 - some dood on stack overflow made this for me when I posted my version that didn't work.
import processing.video.*;
Capture cam;
PImage[] buffer;
int w = 320;
int h = 240;
int nFrames = 30;
int iWrite = 0, iRead = 1;
void setup(){
@gregtemp
gregtemp / gist:6999967
Created October 15, 2013 22:59
tumblr test 1 - getting images from tumblr needs - cocoapods import of tumblrsdk
//
// C4WorkSpace.m
// PodTest2
//
// Created by Gregory Debicki on 2013-10-09.
//
#import "C4Workspace.h"
#import "TMAPIClient.h"