forked from brow/leaves
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
77 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,5 +30,4 @@ - (void)dealloc { | |
[super dealloc]; | ||
} | ||
|
||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// MinimalExampleViewController.h | ||
// Leaves | ||
// | ||
// Created by Tom Brow on 4/20/10. | ||
// Copyright 2010 Tom Brow. All rights reserved. | ||
// | ||
|
||
#import "LeavesViewController.h" | ||
|
||
|
||
@interface ProceduralExampleViewController : LeavesViewController { | ||
|
||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// MinimalExampleViewController.m | ||
// Leaves | ||
// | ||
// Created by Tom Brow on 4/20/10. | ||
// Copyright 2010 Tom Brow. All rights reserved. | ||
// | ||
|
||
#import "ProceduralExampleViewController.h" | ||
|
||
|
||
@implementation ProceduralExampleViewController | ||
|
||
#pragma mark LeavesViewDataSource methods | ||
|
||
- (NSUInteger) numberOfPagesInLeavesView:(LeavesView*)leavesView { | ||
return 10; | ||
} | ||
|
||
- (void) renderPageAtIndex:(NSUInteger)index inContext:(CGContextRef)ctx { | ||
CGRect bounds = CGContextGetClipBoundingBox(ctx); | ||
CGContextSetFillColorWithColor(ctx, [[UIColor colorWithHue:index/10.0 | ||
saturation:0.8 | ||
brightness:0.8 | ||
alpha:1.0] CGColor]); | ||
CGContextFillRect(ctx, CGRectInset(bounds, 100, 100)); | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters