paiv / Anglegradientlayer
Licence: mit
Angle gradients for iOS
Stars: ✭ 244
Programming Languages
swift
15916 projects
Labels
Projects that are alternatives of or similar to Anglegradientlayer
Sketch
Sketch have a lot of basic functions to develop a drawing app for iPhone. Anyone can easily create drawing iOS Application.
Stars: ✭ 229 (-6.15%)
Mutual labels: graphics
Flingengine
A Vulkan game engine with a focus on data oriented design
Stars: ✭ 239 (-2.05%)
Mutual labels: graphics
Pubg mobile memory hacking examples
Pubg Mobile Emulator Gameloop Memory Hacking C++ code examples. Ex: Name, Coord, Bones, Weapons, Items, Box, Drop etc.
Stars: ✭ 224 (-8.2%)
Mutual labels: graphics
Gameoverlay.net
Draw hardware accelerated graphics using our Direct2D1 renderer and create transparent click-through windows.
Stars: ✭ 225 (-7.79%)
Mutual labels: graphics
Lsix
Like "ls", but for images. Shows thumbnails in terminal using sixel graphics.
Stars: ✭ 2,635 (+979.92%)
Mutual labels: graphics
Datoviz
⚡ High-performance GPU interactive scientific data visualization with Vulkan
Stars: ✭ 222 (-9.02%)
Mutual labels: graphics
Graphics32
Graphics32 is a graphics library for Delphi and Lazarus. Optimized for 32-bit pixel formats, it provides fast operations with pixels and graphic primitives. In most cases Graphics32 considerably outperforms the standard TBitmap/TCanvas methods.
Stars: ✭ 238 (-2.46%)
Mutual labels: graphics
Libmypaint
libmypaint, a.k.a. "brushlib", is a library for making brushstrokes which is used by MyPaint and other projects.
Stars: ✭ 225 (-7.79%)
Mutual labels: graphics
Gooey React
The gooey effect for React, used for shape blobbing / metaballs (0.5 KB) 🧽
Stars: ✭ 219 (-10.25%)
Mutual labels: graphics
Ktikz
KtikZ provides a nice user interface for making pictures using TikZ.
Stars: ✭ 233 (-4.51%)
Mutual labels: graphics
Inline Engine
Game engine written in C++ with ease of use and next-gen parallel computing in focus.
Stars: ✭ 237 (-2.87%)
Mutual labels: graphics
Deprecation
This library is deprecated in favor of iOS 12
CAGradientLayer layer type .conic
AngleGradientLayer
AngleGradientLayer is a CALayer implementation of angle gradient.
Installing
pod 'AngleGradientLayer', '~> 1.0'
[Swift] Using in your code
import AngleGradientLayer
class MyView: UIView {
override class func layerClass() -> AnyClass {
return AngleGradientLayer.self
}
override init(frame: CGRect) {
super.init(frame: frame)
let l: AngleGradientLayer = self.layer as! AngleGradientLayer
l.colors = [
UIColor(red: 0, green: 0, blue: 0.5, alpha: 1).CGColor,
UIColor(red: 1, green: 1, blue: 0.4, alpha: 1).CGColor]
}
}
[Objective-C] Using in your code
(See demo project for more.)
#import "AngleGradientLayer.h"
@interface MyView : UIView
@end
@implementation MyView
+ (Class)layerClass
{
return [AngleGradientLayer class];
}
- (id)initWithFrame:(CGRect)frame
{
if (!(self = [super initWithFrame:frame]))
return nil;
AngleGradientLayer *l = (AngleGradientLayer *)self.layer;
l.colors = [NSArray arrayWithObjects:
(id)[UIColor colorWithRed:0 green:0 blue:0.5 alpha:1].CGColor,
(id)[UIColor colorWithRed:1 green:1 blue:0.4 alpha:1].CGColor,
nil];
return self;
}
@end
Notes
When working with semi-transparent views, be sure to set backgroundColor
property on the layer's view
myview.backgroundColor = UIColor.clearColor()
backgroundColor
by default is nil
, blending to black color.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].