- (
void)drawSequl
{
UIColor * color =[
UIColor redColor];
[color setFill];
UIRectFill(CGRectMake(
10,
10,
100,
100));
}
- (
void)drawDiySqul
{
UIColor * color =[
UIColor colorWithRed:
0 green:
0 blue:
0.7 alpha:
1];
[color set];
UIBezierPath * path = [UIBezierPath bezierPathWithRect:CGRectMake(
10,
10,
100,
100)];
path
.lineWidth =
2;
path
.lineCapStyle = kCGLineCapRound;
path
.lineJoinStyle = kCGLineJoinRound;
[path stroke];
}
- (
void)drawCircle
{
[[
UIColor redColor] set];
UIBezierPath * path =[UIBezierPath bezierPathWithOvalInRect:CGRectMake(
10,
10,
200,
200)];
path
.lineWidth =
8;
[path stroke];
}
- (
void)drawDiyGraph
{
[[
UIColor orangeColor] set];
UIBezierPath * path =[UIBezierPath bezierPath];
path
.lineWidth =
4;
path
.lineCapStyle = kCGLineCapRound;
path
.lineJoinStyle = kCGLineJoinRound;
[path moveToPoint:CGPointMake(
10,
10)];
[path addLineToPoint:CGPointMake(
60,
10)];
[path addLineToPoint:CGPointMake(
60,
20)];
[path addLineToPoint:CGPointMake(
50,
70)];
[path addLineToPoint:CGPointMake(
30,
120)];
[path addLineToPoint:CGPointMake(
20,
200)];
[path closePath];
[path stroke];
[path fill];
}
- (
void)drawIrregularity
{
[[
UIColor whiteColor] set];
UIBezierPath * path =[UIBezierPath bezierPathWithArcCenter:CGPointMake(
100,
100) radius:
90 startAngle:
0 endAngle:
3.14/
2*
3 clockwise:
YES];
path
.lineWidth =
8;
[path stroke];
}
- (
void)drawBersizer
{
[[
UIColor whiteColor]set];
UIBezierPath * path = [UIBezierPath bezierPath];
path
.lineWidth =
4;
[path moveToPoint:CGPointMake(
10,
210)];
[path addQuadCurveToPoint:CGPointMake(
310,
210) controlPoint:CGPointMake(
100,
50)];
[path stroke];
}
- (
void)drawBolang
{
[[
UIColor whiteColor]set];
UIBezierPath * path = [UIBezierPath bezierPath];
path
.lineWidth =
6;
[path moveToPoint:CGPointMake(
10,
310)];
[path addCurveToPoint:CGPointMake(
370,
310) controlPoint1:CGPointMake(
130,
210) controlPoint2:CGPointMake(
250,
410)];
[path stroke];
}
- (
void)drawLLLL
{
[[
UIColor whiteColor]set];
UIBezierPath * path = [UIBezierPath bezierPath];
path
.lineWidth =
4;
path
.lineCapStyle = kCGLineCapRound;
[path moveToPoint:CGPointMake(
0,
200)];
[path addQuadCurveToPoint:CGPointMake(
100,
200) controlPoint:CGPointMake(
50,
100)];
[path addQuadCurveToPoint:CGPointMake(
200,
200) controlPoint:CGPointMake(
150,
300)];
[path addQuadCurveToPoint:CGPointMake(
300,
200) controlPoint:CGPointMake(
250,
100)];
[path stroke];
}