Skip to content

Class for displaying linear gradients without having to write any CG code.

Notifications You must be signed in to change notification settings

eliaskg/EKGradientView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

EKGradientView

EKGradientView is a class for displaying linear gradients without having to write any CG code. It's made for the Cappuccino framework.

Installation

Simply import the file in your application's AppController or any other class:

@import "EKGradientView.j"

Usage

Init your gradientView:

gradientView = [[EKGradientView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];

Set the orientation (default is horizontal)

[gradientView setOrientation:@"vertical"];

Set your colors

[gradientView setColor1:[CPColor whiteColor]];
[gradientView setColor2:[CPColor blackColor]];

About

Class for displaying linear gradients without having to write any CG code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published