Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (CALayer *) makeContentsLayer
- {
- CALayer * contents = [CALayer layer];
- contents.bounds = CGRectMake(-5000, -5000, 2*5000, 2*5000);
- contents.backgroundColor = self.clr;
- // - - -
- // clip contents layer by outline (outline centered on (0, 0))
- CAShapeLayer * shapeOutline = [CAShapeLayer layer];
- shapeOutline.path = self.pOutline;
- contents.mask = shapeOutline;
- // - - -
- if (NO)
- [self markPosition: CGPointZero
- onLayer: contents ];
- // - - -
- [self refreshTextLayer];
- [contents addSublayer: self.shapeLayerForText];
- // - - -
- return contents;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement