python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
CGGradientCreateWithColors / CGContextDrawLinearGradient - formula to calculate intermediate colour combinations?
Does anyone know the formula used by CGGradientCreateWithColors to calculate the intermediate colours at each point along the gradient? I want to reproduce the colour for a given point - e.g. with CGG...
djmlewis
Votes: 0
Answers: 1
Significance of kCGImageAlphaPremultipliedLast and kCGBitmapByteOrder32Big in core graphics
I am converting pdf's to images and displaying in ios using quartz 2d api's. The bitmap image width and height will be arbitrary and will not necessarily match the PDF's dimensions.
While most PDF's...

Muthukumar
Votes: 0
Answers: 0
How to crop the shape of an image out of a caShape layer,
I have a cashape layer which looks like this
I have this P Image
I want the center of the triangle to be see-through in the same shape of P image (or any image) kind of like this
I have tried (amon...
Ungrace
Votes: 0
Answers: 1
Detect Mac device color (Swift)
I am wondering if it is possible to detect the color of the Mac my app is running on?
extension NSScreen {
var cgDirectDisplayId: CGDirectDisplayID? {
let description = self.deviceDescrip...

ixany
Votes: 0
Answers: 0