Skip to content

Instantly share code, notes, and snippets.

@C4Code
C4Code / C4WorkSpace.m
Created June 10, 2012 19:37
Apple DTS
#import "C4WorkSpace.h"
@interface C4WorkSpace ()
@end
@implementation C4WorkSpace {
C4Shape *translateRect, *transformRect;
}
-(void)setup {
@C4Code
C4Code / C4WorkSpace.m
Created July 21, 2012 04:54
Animated Mask Over Camera
//
// C4WorkSpace.m
// camera test
//
// Created by Travis Kirton on 12-07-20.
// Copyright (c) 2012 POSTFL. All rights reserved.
//
#import "C4WorkSpace.h"
@C4Code
C4Code / C4WorkSpace.m
Created July 23, 2012 23:03
Walkthrough code for TEI2013 Submission
//
// C4WorkSpace.m
// TEI2013
//
// Created by Travis Kirton on 12-07-23.
// Copyright (c) 2012 POSTFL. All rights reserved.
//
#import "C4WorkSpace.h"
@C4Code
C4Code / C4WorkSpace.m
Created August 5, 2012 02:49
Recreation of Openframeworks graphicsExample
//
// C4WorkSpace.m
// Examples
//
// Created by Travis Kirton
//
#import "C4WorkSpace.h"
#import "SquaresGL.h"
@C4Code
C4Code / C4WorkSpace.m
Created September 24, 2012 04:48
Toggle Audio Playback
//
// C4WorkSpace.m
// gettingThingsOnScreen
//
// Created by moi on 12-09-23.
// Copyright (c) 2012 moi. All rights reserved.
//
#import "C4WorkSpace.h"
@C4Code
C4Code / C4WorkSpace.m
Created September 24, 2012 21:38
Dragging + Layering
//
// C4WorkSpace.m
// gettingThingsOnScreen
//
// Created by moi on 12-09-23.
// Copyright (c) 2012 moi. All rights reserved.
//
#import "C4WorkSpace.h"
@C4Code
C4Code / C4WorkSpace
Created September 24, 2012 21:59
Getting the time between touchesBegan and touchesEnded
#import "C4WorkSpace.h"
@implementation C4WorkSpace {
NSDate *timeButtonWasPressed, *timeButtonWasReleased;
}
-(void)touchesBegan {
timeButtonWasPressed = [NSDate dateWithTimeIntervalSinceNow:0.0f];
}
@C4Code
C4Code / C4WorkSpace.m
Created September 28, 2012 16:49
Draw C4Shape to PDF
//
// C4WorkSpace.m
// drawShapesToImage
//
// Created by moi on 12-09-27.
// Copyright (c) 2012 moi. All rights reserved.
//
#import "C4WorkSpace.h"
@C4Code
C4Code / C4WorkSpace.m
Created September 29, 2012 16:49
PAN Gesture for a Line
//
// C4WorkSpace.m
// linePAN
//
// Created by moi on 12-09-29.
// Copyright (c) 2012 moi. All rights reserved.
//
/*
One of the main problems in trying to drag a LINE is that, by default, you cannot add gestures to lines.
@C4Code
C4Code / C4WorkSpace.h
Created September 29, 2012 19:03
Vertical Line Draggable
//
// C4WorkSpace.m
// linePAN
//
// Created by moi on 12-09-29.
// Copyright (c) 2012 moi. All rights reserved.
//
/*
Here's how to make a vertical line draggable...