I am trying to make an MKPolyline for a SwiftUI map where it shows a persons location for a day and I want a gradient changing from blue to green from ...
I am trying to make an MKPolyline for a SwiftUI map where it shows a persons location for a day and I want a gradient changing from blue to green from ...
I currently have a function where I draw a QR code Currently, I can set the color including the colorspace using the following: I am trying to i ...
I have an array of NSColors, and an array of CGFloats signifying gradient stops. I can't figure out how to use these arrays to initialize a NSGradient ...
I am trying to generate my own textured NSWindow so it appears with a different gradient to the default metallic appearing one. So far I've subclasse ...
OK, long story short: I'm using (embedded into the bundle) FontAwesome I'm using it as the font in some custom NSButtons In the NSButton subcl ...
I have a NSView subclass named OneView with the following code: In my AppDelegate (or could be any other class), I am trying to change the colors o ...
I'm trying to take an NSGradient and save it as an image in RubyMotion, but I can't get it to work. This is the code I have so far: It runs without ...
AppKit is not available in iOS, so I was looking for a replacement. Specifically, I was looking for a replacement method for: I need a way to defi ...
In the following NSGradient method: What is index? The documentation says index of the colour I want. But I thought the point of this method is tha ...
I'm trying to create a gradient color out of an array of dictionary (colorArray2). This dictionary contains 5 keys: r, g, b, a, p. r, g, b, a are comp ...
Simply put: is it possible to fade between two NSGradient "fills" on a single NSView? Eg. draw one gradient and fade to drawing the next one. ...
How can I draw highlights and non-4-sided borders natively in Cocoa? An example is the image below. There's a small 1px white inner border on the top ...
I am new to cocoa I am try to set NSGradient to the NSWindow background but it's too difficult for me...I have try this code but it is not working. ...
I am drawing on a custom view an NSGradient like this: If _color is a normal color, for example [NSColor blueColor], everything is fine. The proble ...
I'm using an NSGradient for some stuff and at some point I need to add/change/delete colors. Now NSGradient is immutable as far as I know so the only ...
I should to reproduce this behavior I've tried using NSGradient with a simple linear gradient in order to fill it but it's a poor result. What kind ...
I have a custom box that I've made that is a subclass of NSBox. I override the drawRect: method and draw a gradient in it like this (assuming I alread ...