Created
December 9, 2014 04:27
-
-
Save chenillen/164f1dedcc37834469c0 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
{ | |
//// Bezier 2 Drawing | |
UIBezierPath* bezier2Path = UIBezierPath.bezierPath; | |
[bezier2Path moveToPoint: CGPointMake(97.5, 68.12)]; | |
[bezier2Path addCurveToPoint: CGPointMake(93.5, 83.12) controlPoint1: CGPointMake(97.5, 68.12) controlPoint2: CGPointMake(99.79, 80.7)]; | |
[bezier2Path addCurveToPoint: CGPointMake(108.5, 74.12) controlPoint1: CGPointMake(87.21, 85.54) controlPoint2: CGPointMake(105.36, 86.23)]; | |
[UIColor.darkGrayColor setStroke]; | |
bezier2Path.lineWidth = 1; | |
[bezier2Path stroke]; | |
//// Bezier 3 Drawing | |
UIBezierPath* bezier3Path = UIBezierPath.bezierPath; | |
[bezier3Path moveToPoint: CGPointMake(107.5, 74.12)]; | |
[bezier3Path addCurveToPoint: CGPointMake(104.5, 87.12) controlPoint1: CGPointMake(107.5, 74.12) controlPoint2: CGPointMake(109.8, 83.36)]; | |
[bezier3Path addCurveToPoint: CGPointMake(117.5, 77.12) controlPoint1: CGPointMake(99.2, 90.88) controlPoint2: CGPointMake(120.15, 86.14)]; | |
[UIColor.darkGrayColor setStroke]; | |
bezier3Path.lineWidth = 1; | |
[bezier3Path stroke]; | |
//// Bezier 4 Drawing | |
UIBezierPath* bezier4Path = UIBezierPath.bezierPath; | |
[bezier4Path moveToPoint: CGPointMake(135.5, 67.12)]; | |
[bezier4Path addCurveToPoint: CGPointMake(140.5, 83.12) controlPoint1: CGPointMake(135.5, 67.12) controlPoint2: CGPointMake(135.29, 83.12)]; | |
[bezier4Path addCurveToPoint: CGPointMake(127.5, 72.12) controlPoint1: CGPointMake(145.71, 83.12) controlPoint2: CGPointMake(131.84, 89.77)]; | |
[UIColor.grayColor setStroke]; | |
bezier4Path.lineWidth = 1; | |
[bezier4Path stroke]; | |
//// Bezier 5 Drawing | |
UIBezierPath* bezier5Path = UIBezierPath.bezierPath; | |
[bezier5Path moveToPoint: CGPointMake(128.5, 73.12)]; | |
[bezier5Path addCurveToPoint: CGPointMake(131.5, 87.12) controlPoint1: CGPointMake(128.5, 73.12) controlPoint2: CGPointMake(126.5, 83.12)]; | |
[bezier5Path addCurveToPoint: CGPointMake(117.5, 76.12) controlPoint1: CGPointMake(136.5, 91.12) controlPoint2: CGPointMake(117.5, 86.12)]; | |
[UIColor.grayColor setStroke]; | |
bezier5Path.lineWidth = 1; | |
[bezier5Path stroke]; | |
//// Oval Drawing | |
UIBezierPath* ovalPath = [UIBezierPath bezierPathWithOvalInRect: CGRectMake(99, 47, 5, 5)]; | |
[UIColor.grayColor setFill]; | |
[ovalPath fill]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment