Flutterby™! : Anybody know how to make Apple

Next unread comment / Catchup all unread comments User Account Info | Logout | XML/Pilot/etc versions | Long version (with comments) | Weblog archives | Site Map | | Browse Topics

Anybody know how to make Apple

2022-04-13 18:40:02.827841+02 by Dan Lyke 3 comments

Anybody know how to make Apple NSGradient drawing actually fade to the outside color? Trying to fade to tranparent for subtle glow effects, and getting harsh edges...

[ related topics: Apple Computer ]

comments in ascending chronological order (reverse):

#Comment Re: Anybody know how to make Apple made: 2022-04-14 17:26:06.681454+02 by: markd

probably need to have an opacity mask where you want the blend to happen

#Comment Re: Anybody know how to make Apple made: 2022-04-14 20:44:03.741887+02 by: Dan Lyke

Solution that worked, or at least made the whole thing look a lot better: Replacing [[NSGradient alloc] initWithStartingColor:color endingColor:clearColor] with [[NSGradient alloc] initWithColors:@[color, clearColor, clearColor]]

#Comment Re: Anybody know how to make Apple made: 2022-04-17 18:30:22.273829+02 by: markd

nice!

Comment policy

We will not edit your comments. However, we may delete your comments, or cause them to be hidden behind another link, if we feel they detract from the conversation. Commercial plugs are fine, if they are relevant to the conversation, and if you don't try to pretend to be a consumer. Annoying endorsements will be deleted if you're lucky, if you're not a whole bunch of people smarter and more articulate than you will ridicule you, and we will leave such ridicule in place.


Flutterby™ is a trademark claimed by

Dan Lyke
for the web publications at www.flutterby.com and www.flutterby.net.