iphone Programming Glossary: colorlayer
Create layer mask with custom-shaped hole http://stackoverflow.com/questions/5721196/create-layer-mask-with-custom-shaped-hole UIColor whiteColor .CGColor maskLayer.backgroundColor UIColor clearColor .CGColor maskLayer.path path.CGPath CALayer colorLayer CALayer layer colorLayer.bounds spr boundingBox colorLayer.position maskLayer.position colorLayer setMask maskLayer CCDirector.. maskLayer.backgroundColor UIColor clearColor .CGColor maskLayer.path path.CGPath CALayer colorLayer CALayer layer colorLayer.bounds spr boundingBox colorLayer.position maskLayer.position colorLayer setMask maskLayer CCDirector sharedDirector openGLView.. clearColor .CGColor maskLayer.path path.CGPath CALayer colorLayer CALayer layer colorLayer.bounds spr boundingBox colorLayer.position maskLayer.position colorLayer setMask maskLayer CCDirector sharedDirector openGLView layer addSublayer colorLayer..
|