Skip to content

Instantly share code, notes, and snippets.

@C4Code
C4Code / C4WorkSpace.m
Created May 12, 2012
how to make a C4Image animate to black and white
View C4WorkSpace.m
#import "C4WorkSpace.h"
C4Image *myImage;
@implementation C4WorkSpace
-(void)setup {
myImage = [C4Image imageNamed:@"C4Sky.png"];
myImage.center = CGPointMake(384, 512);
[self.canvas addImage:myImage];
@C4Code
C4Code / C4WorkSpace.m
Created May 12, 2012
how to structure the init method of a custom shape class
View C4WorkSpace.m
//
// C4WorkSpace.m
// customShapeInit
//
// Created by Travis Kirton on 12-04-30.
// Copyright (c) 2012 POSTFL. All rights reserved.
//
#import "C4WorkSpace.h"
#import "MyShape.h"
@C4Code
C4Code / C4WorkSpace.m
Created May 12, 2012
daisy chaining animations with timers
View C4WorkSpace.m
//
// C4WorkSpace.m
// daisyChaining
//
// Created by Travis Kirton on 12-04-04.
// Copyright (c) 2012 POSTFL. All rights reserved.
//
#import "C4WorkSpace.h"
@C4Code
C4Code / C4WorkSpace.m
Created May 12, 2012
How to make a C4 object glow, using shadows
View C4WorkSpace.m
//
// C4WorkSpace.m
// glow
//
// Created by Travis Kirton on 12-04-04.
// Copyright (c) 2012 POSTFL. All rights reserved.
//
#import "C4WorkSpace.h"
@C4Code
C4Code / C4WorkSpace.m
Created May 12, 2012
how to rotate shapes using the shape.transform property (uses CGAffineTransform)
View C4WorkSpace.m
//
// C4WorkSpace.m
// rotate
//
// Created by Travis Kirton on 12-04-04.
// Copyright (c) 2012 POSTFL. All rights reserved.
//
#import "C4WorkSpace.h"
@C4Code
C4Code / C4Shape+touchSetAccess.h
Created May 13, 2012
using a category on C4Shape to access the touches of a shape via the notification center
View C4Shape+touchSetAccess.h
//
// C4Shape+touchSetAccess.h
// accessTouches
//
// Created by Travis Kirton on 12-05-12.
// Copyright (c) 2012 POSTFL. All rights reserved.
//
#import "C4Shape.h"
@C4Code
C4Code / C4WorkSpace.m
Created May 18, 2012
Audio meter for C4
View C4WorkSpace.m
//
// C4WorkSpace.m
// audioMeter
//
// Created by Travis Kirton on 12-05-17.
// Copyright (c) 2012 POSTFL. All rights reserved.
//
#import "C4WorkSpace.h"
@interface C4WorkSpace ()
@C4Code
C4Code / C4WorkSpace.m
Created May 18, 2012
C4LinesProject workspace... because our git pull request failed hard
View C4WorkSpace.m
//
// C4WorkSpace.m
// mwylegly_0503_01
//
// Created by MADT.Student on 12-05-03.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "C4WorkSpace.h"
#import "C4Vector.h"
@C4Code
C4Code / C4WorkSpace.m
Created May 22, 2012
Create PDF in iOS
View C4WorkSpace.m
//
// C4WorkSpace.m
// createPDF
//
// Created by Travis Kirton on 12-05-17.
// Copyright (c) 2012 POSTFL. All rights reserved.
//
#import "C4WorkSpace.h"
@C4Code
C4Code / C4WorkSpace.m
Created Jun 7, 2012
How to set and change layer positions of visible objects
View C4WorkSpace.m
#import "C4WorkSpace.h"
@implementation C4WorkSpace {
C4Shape *zPositionShape;
CGFloat zPosOfLastShape, offset;
NSInteger circleCount;
}
-(void)setup {
offset = 30;