Created
August 30, 2015 12:55
-
-
Save AlexanderBollbach/d1eba4d591ccac7c4614 to your computer and use it in GitHub Desktop.
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
// | |
// OrbLayerBaseOverlay.m | |
// fieldTheory1 | |
// | |
// Created by alexanderbollbach on 8/29/15. | |
// Copyright © 2015 alexanderbollbach. All rights reserved. | |
// | |
#define degreesToRadians(x) ((x) * M_PI / 180.0) | |
#import "OrbLayerBaseOverlay.h" | |
#import <UIKit/UIKit.h> | |
@implementation OrbLayerBaseOverlay | |
- (id)init { | |
if ((self = [super init])) { | |
self.backgroundColor = [UIColor clearColor].CGColor; | |
self.bounds = CGRectMake(0,0, 50, 50); | |
CGPoint center = CGPointMake(self.bounds.size.width/2, self.bounds.size.height/2); | |
self.path = [UIBezierPath bezierPathWithArcCenter:CGPointMake(25,25) | |
radius:10 | |
startAngle:degreesToRadians(0) | |
endAngle:degreesToRadians(360) | |
clockwise:NO].CGPath; | |
self.fillColor = [UIColor yellowColor].CGColor; | |
self.strokeColor = [UIColor blackColor].CGColor; | |
self.lineWidth = 0; | |
self.position = center; | |
} | |
return self; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment