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!