Skip navigation.
 
mlRe: question on layer setup in Covertflow sample code
FROM : Scott Anguish
DATE : Tue Jun 24 18:22:02 2008

first, please don't crosspost between cocoadev and quartz-dev

the reflection is a sublayer of the image so that it will move the 
same.  rotate the layer with the image in it, the reflection also 
rotates.


the reflection layer uses additional Core Animation features to 
display only parts of the flipped image (a gradient in another layer 
that is set as the reflection layer's mask).

so setting the same imageon the reflection causes it to mask with the 
maskLayer that is set and display only a portion of the image that 
corresponds with the gradient.

hopefully that helps.

Related mailsAuthorDate
mlquestion on layer setup in Covertflow sample code Wayne Shao Jun 17, 17:27
mlRe: question on layer setup in Covertflow sample code Scott Anguish Jun 24, 18:22