iphone Programming Glossary: spr.position
Create layer mask with custom-shaped hole http://stackoverflow.com/questions/5721196/create-layer-mask-with-custom-shaped-hole winSize UIImage img UIImage imageNamed @ zebra.png CCSprite spr CCSprite spriteWithCGImage img.CGImage key @ img spr.position ccp winSize.width 2 winSize.width 2 self addSprite spr UIBezierPath path UIBezierPath bezierPathWithRect rectHole CAShapeLayer.. rectHole CAShapeLayer maskLayer CAShapeLayer layer maskLayer.bounds spr boundingBox maskLayer.position spr.position maskLayer.fillColor UIColor whiteColor .CGColor maskLayer.backgroundColor UIColor clearColor .CGColor maskLayer.path path.CGPath.. winSize UIImage img UIImage imageNamed @ zebra.png CCSprite spr CCSprite spriteWithCGImage img.CGImage key @ img spr.position ccp winSize.width 2 winSize.width 2 self addSprite spr UIBezierPath path UIBezierPath bezierPathWithRect rectHole CAShapeLayer..
|