Skip to content

Instantly share code, notes, and snippets.

@AlexanderBollbach
Created August 30, 2015 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexanderBollbach/d1eba4d591ccac7c4614 to your computer and use it in GitHub Desktop.
Save AlexanderBollbach/d1eba4d591ccac7c4614 to your computer and use it in GitHub Desktop.
//
// 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