#import "BTUIKCVVFrontVectorArtView.h" @implementation BTUIKCVVFrontVectorArtView - (void)drawArt { //// Color Declarations UIColor* color1 = [UIColor colorWithRed: 0.765 green: 0.77 blue: 0.756 alpha: 1]; UIColor* color3 = self.highlightColor ?: color1; UIColor* color2 = [UIColor colorWithRed: 0 green: 0 blue: 0 alpha: 0.105]; UIColor* color4 = [UIColor colorWithRed: 1 green: 1 blue: 1 alpha: 1]; //// Page-1 { //// CVV-Front { //// Card-#-2 { //// CC-numbers { //// CC-number { //// Bezier Drawing UIBezierPath* bezierPath = [UIBezierPath bezierPath]; [bezierPath moveToPoint: CGPointMake(6, 31)]; [bezierPath addLineToPoint: CGPointMake(8, 31)]; [bezierPath addLineToPoint: CGPointMake(8, 37)]; [bezierPath addLineToPoint: CGPointMake(6, 37)]; [bezierPath addLineToPoint: CGPointMake(6, 31)]; [bezierPath closePath]; bezierPath.miterLimit = 4; bezierPath.usesEvenOddFillRule = YES; [color1 setFill]; [bezierPath fill]; //// Bezier 2 Drawing UIBezierPath* bezier2Path = [UIBezierPath bezierPath]; [bezier2Path moveToPoint: CGPointMake(10, 31)]; [bezier2Path addLineToPoint: CGPointMake(12, 31)]; [bezier2Path addLineToPoint: CGPointMake(12, 37)]; [bezier2Path addLineToPoint: CGPointMake(10, 37)]; [bezier2Path addLineToPoint: CGPointMake(10, 31)]; [bezier2Path closePath]; bezier2Path.miterLimit = 4; bezier2Path.usesEvenOddFillRule = YES; [color1 setFill]; [bezier2Path fill]; //// Bezier 3 Drawing UIBezierPath* bezier3Path = [UIBezierPath bezierPath]; [bezier3Path moveToPoint: CGPointMake(14, 31)]; [bezier3Path addLineToPoint: CGPointMake(16, 31)]; [bezier3Path addLineToPoint: CGPointMake(16, 37)]; [bezier3Path addLineToPoint: CGPointMake(14, 37)]; [bezier3Path addLineToPoint: CGPointMake(14, 31)]; [bezier3Path closePath]; bezier3Path.miterLimit = 4; bezier3Path.usesEvenOddFillRule = YES; [color1 setFill]; [bezier3Path fill]; //// Bezier 4 Drawing UIBezierPath* bezier4Path = [UIBezierPath bezierPath]; [bezier4Path moveToPoint: CGPointMake(18, 31)]; [bezier4Path addLineToPoint: CGPointMake(20, 31)]; [bezier4Path addLineToPoint: CGPointMake(20, 37)]; [bezier4Path addLineToPoint: CGPointMake(18, 37)]; [bezier4Path addLineToPoint: CGPointMake(18, 31)]; [bezier4Path closePath]; bezier4Path.miterLimit = 4; bezier4Path.usesEvenOddFillRule = YES; [color1 setFill]; [bezier4Path fill]; //// Bezier 5 Drawing UIBezierPath* bezier5Path = [UIBezierPath bezierPath]; [bezier5Path moveToPoint: CGPointMake(26, 31)]; [bezier5Path addLineToPoint: CGPointMake(28, 31)]; [bezier5Path addLineToPoint: CGPointMake(28, 37)]; [bezier5Path addLineToPoint: CGPointMake(26, 37)]; [bezier5Path addLineToPoint: CGPointMake(26, 31)]; [bezier5Path closePath]; bezier5Path.miterLimit = 4; bezier5Path.usesEvenOddFillRule = YES; [color1 setFill]; [bezier5Path fill]; //// Bezier 6 Drawing UIBezierPath* bezier6Path = [UIBezierPath bezierPath]; [bezier6Path moveToPoint: CGPointMake(30, 31)]; [bezier6Path addLineToPoint: CGPointMake(32, 31)]; [bezier6Path addLineToPoint: CGPointMake(32, 37)]; [bezier6Path addLineToPoint: CGPointMake(30, 37)]; [bezier6Path addLineToPoint: CGPointMake(30, 31)]; [bezier6Path closePath]; bezier6Path.miterLimit = 4; bezier6Path.usesEvenOddFillRule = YES; [color1 setFill]; [bezier6Path fill]; //// Bezier 7 Drawing UIBezierPath* bezier7Path = [UIBezierPath bezierPath]; [bezier7Path moveToPoint: CGPointMake(34, 31)]; [bezier7Path addLineToPoint: CGPointMake(36, 31)]; [bezier7Path addLineToPoint: CGPointMake(36, 37)]; [bezier7Path addLineToPoint: CGPointMake(34, 37)]; [bezier7Path addLineToPoint: CGPointMake(34, 31)]; [bezier7Path closePath]; bezier7Path.miterLimit = 4; bezier7Path.usesEvenOddFillRule = YES; [color1 setFill]; [bezier7Path fill]; //// Bezier 8 Drawing UIBezierPath* bezier8Path = [UIBezierPath bezierPath]; [bezier8Path moveToPoint: CGPointMake(38, 31)]; [bezier8Path addLineToPoint: CGPointMake(40, 31)]; [bezier8Path addLineToPoint: CGPointMake(40, 37)]; [bezier8Path addLineToPoint: CGPointMake(38, 37)]; [bezier8Path addLineToPoint: CGPointMake(38, 31)]; [bezier8Path closePath]; bezier8Path.miterLimit = 4; bezier8Path.usesEvenOddFillRule = YES; [color1 setFill]; [bezier8Path fill]; //// Bezier 9 Drawing UIBezierPath* bezier9Path = [UIBezierPath bezierPath]; [bezier9Path moveToPoint: CGPointMake(46, 31)]; [bezier9Path addLineToPoint: CGPointMake(48, 31)]; [bezier9Path addLineToPoint: CGPointMake(48, 37)]; [bezier9Path addLineToPoint: CGPointMake(46, 37)]; [bezier9Path addLineToPoint: CGPointMake(46, 31)]; [bezier9Path closePath]; bezier9Path.miterLimit = 4; bezier9Path.usesEvenOddFillRule = YES; [color1 setFill]; [bezier9Path fill]; //// Bezier 10 Drawing UIBezierPath* bezier10Path = [UIBezierPath bezierPath]; [bezier10Path moveToPoint: CGPointMake(50, 31)]; [bezier10Path addLineToPoint: CGPointMake(52, 31)]; [bezier10Path addLineToPoint: CGPointMake(52, 37)]; [bezier10Path addLineToPoint: CGPointMake(50, 37)]; [bezier10Path addLineToPoint: CGPointMake(50, 31)]; [bezier10Path closePath]; bezier10Path.miterLimit = 4; bezier10Path.usesEvenOddFillRule = YES; [color1 setFill]; [bezier10Path fill]; //// Bezier 11 Drawing UIBezierPath* bezier11Path = [UIBezierPath bezierPath]; [bezier11Path moveToPoint: CGPointMake(54, 31)]; [bezier11Path addLineToPoint: CGPointMake(56, 31)]; [bezier11Path addLineToPoint: CGPointMake(56, 37)]; [bezier11Path addLineToPoint: CGPointMake(54, 37)]; [bezier11Path addLineToPoint: CGPointMake(54, 31)]; [bezier11Path closePath]; bezier11Path.miterLimit = 4; bezier11Path.usesEvenOddFillRule = YES; [color1 setFill]; [bezier11Path fill]; //// Bezier 12 Drawing UIBezierPath* bezier12Path = [UIBezierPath bezierPath]; [bezier12Path moveToPoint: CGPointMake(58, 31)]; [bezier12Path addLineToPoint: CGPointMake(60, 31)]; [bezier12Path addLineToPoint: CGPointMake(60, 37)]; [bezier12Path addLineToPoint: CGPointMake(58, 37)]; [bezier12Path addLineToPoint: CGPointMake(58, 31)]; [bezier12Path closePath]; bezier12Path.miterLimit = 4; bezier12Path.usesEvenOddFillRule = YES; [color1 setFill]; [bezier12Path fill]; //// Bezier 13 Drawing UIBezierPath* bezier13Path = [UIBezierPath bezierPath]; [bezier13Path moveToPoint: CGPointMake(66, 31)]; [bezier13Path addLineToPoint: CGPointMake(68, 31)]; [bezier13Path addLineToPoint: CGPointMake(68, 37)]; [bezier13Path addLineToPoint: CGPointMake(66, 37)]; [bezier13Path addLineToPoint: CGPointMake(66, 31)]; [bezier13Path closePath]; bezier13Path.miterLimit = 4; bezier13Path.usesEvenOddFillRule = YES; [color1 setFill]; [bezier13Path fill]; //// Bezier 14 Drawing UIBezierPath* bezier14Path = [UIBezierPath bezierPath]; [bezier14Path moveToPoint: CGPointMake(70, 31)]; [bezier14Path addLineToPoint: CGPointMake(72, 31)]; [bezier14Path addLineToPoint: CGPointMake(72, 37)]; [bezier14Path addLineToPoint: CGPointMake(70, 37)]; [bezier14Path addLineToPoint: CGPointMake(70, 31)]; [bezier14Path closePath]; bezier14Path.miterLimit = 4; bezier14Path.usesEvenOddFillRule = YES; [color1 setFill]; [bezier14Path fill]; //// Bezier 15 Drawing UIBezierPath* bezier15Path = [UIBezierPath bezierPath]; [bezier15Path moveToPoint: CGPointMake(74, 31)]; [bezier15Path addLineToPoint: CGPointMake(76, 31)]; [bezier15Path addLineToPoint: CGPointMake(76, 37)]; [bezier15Path addLineToPoint: CGPointMake(74, 37)]; [bezier15Path addLineToPoint: CGPointMake(74, 31)]; [bezier15Path closePath]; bezier15Path.miterLimit = 4; bezier15Path.usesEvenOddFillRule = YES; [color1 setFill]; [bezier15Path fill]; //// Bezier 16 Drawing UIBezierPath* bezier16Path = [UIBezierPath bezierPath]; [bezier16Path moveToPoint: CGPointMake(78, 31)]; [bezier16Path addLineToPoint: CGPointMake(80, 31)]; [bezier16Path addLineToPoint: CGPointMake(80, 37)]; [bezier16Path addLineToPoint: CGPointMake(78, 37)]; [bezier16Path addLineToPoint: CGPointMake(78, 31)]; [bezier16Path closePath]; bezier16Path.miterLimit = 4; bezier16Path.usesEvenOddFillRule = YES; [color1 setFill]; [bezier16Path fill]; } //// Rectangle Drawing UIBezierPath* rectanglePath = [UIBezierPath bezierPathWithRect: CGRectMake(26, 43, 14, 2)]; [color2 setFill]; [rectanglePath fill]; //// Rectangle 2 Drawing UIBezierPath* rectangle2Path = [UIBezierPath bezierPathWithRect: CGRectMake(6, 47, 34, 2)]; [color2 setFill]; [rectangle2Path fill]; //// Rounded Rectangle Drawing UIBezierPath* roundedRectanglePath = [UIBezierPath bezierPathWithRoundedRect: CGRectMake(56, 5, 26, 18) cornerRadius: 9]; [color3 setFill]; [roundedRectanglePath fill]; //// Rectangle 3 Drawing UIBezierPath* rectangle3Path = [UIBezierPath bezierPathWithRect: CGRectMake(62, 11, 2, 6)]; [color4 setFill]; [rectangle3Path fill]; //// Rectangle 4 Drawing UIBezierPath* rectangle4Path = [UIBezierPath bezierPathWithRect: CGRectMake(66, 11, 2, 6)]; [color4 setFill]; [rectangle4Path fill]; //// Rectangle 5 Drawing UIBezierPath* rectangle5Path = [UIBezierPath bezierPathWithRect: CGRectMake(70, 11, 2, 6)]; [color4 setFill]; [rectangle5Path fill]; //// Rectangle 6 Drawing UIBezierPath* rectangle6Path = [UIBezierPath bezierPathWithRect: CGRectMake(74, 11, 2, 6)]; [color4 setFill]; [rectangle6Path fill]; } //// Rounded Rectangle 2 Drawing UIBezierPath* roundedRectangle2Path = [UIBezierPath bezierPathWithRoundedRect: CGRectMake(6, 7, 14, 14) cornerRadius: 0.75]; [color2 setFill]; [roundedRectangle2Path fill]; //// Rounded Rectangle 3 Drawing UIBezierPath* roundedRectangle3Path = [UIBezierPath bezierPathWithRoundedRect: CGRectMake(72, 41, 8, 8) cornerRadius: 0.75]; [color2 setFill]; [roundedRectangle3Path fill]; } } } } @end