Skip to content

Ultra-basic UIView subclass. Draws using CGGradient, which supports dithering to avoid banding artefacts.

License

Notifications You must be signed in to change notification settings

dclelland/CXDitheredGradientView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CXDitheredGradientView

Ultra-basic UIView subclass. Draws using CGGradient, which supports dithering to avoid banding artefacts.

CXDitheredGradientView *gradientView = [[CXDitheredGradientView alloc] initWithFrame:self.view.bounds];

gradientView.colors = @[[UIColor redColor], [UIColor whiteColor], [UIColor blueColor]];

[self.view addSubview:gradientView];

About

Ultra-basic UIView subclass. Draws using CGGradient, which supports dithering to avoid banding artefacts.

Resources

License

Stars

Watchers

Forks

Packages