Skip to content

Instantly share code, notes, and snippets.

View andrewfiorillo's full-sized avatar

Andrew Fiorillo andrewfiorillo

View GitHub Profile
// Convert NSColor to an NSColor in sRGBA color space.
var sRGBAColor = color.colorUsingColorSpace(NSColorSpace.sRGBColorSpace())
// Create MSColor usable by Sketch from NSColor in sRGBA color space
var msColor = MSColor.colorWithNSColor(sRGBAColor);

Keybase proof

I hereby claim:

  • I am andrewfiorillo on github.
  • I am block_head (https://keybase.io/block_head) on keybase.
  • I have a public key ASBE1GhMgVFMtk4dDonpnTAqC6iUTFfWg0uNDog8ONJ8oQo

To claim this, I am signing this object: