Re: Layers and shadows. Is it possible to have a layer with a shadow and no background color?


Jeremy Hughes
 

On 24 Jun 2021, at 14:28, Alex Zavatone via groups.io <zav=mac.com@groups.io> wrote:

But it’s odd, since I set the shadow opacity to 1, which is 100%.
Sure — but it doesn’t matter how opaque the shadow is. An object with zero opacity won’t have a shadow (in real life or in computer graphics).

Imagine some opaque text on a transparent background (e.g. polythene in real life). The text will cast a shadow but the transparent background (polythene) won’t.

Jeremy

Join cocoa@apple-dev.groups.io to automatically receive all group messages.