-
-
Save fitomad/2d08d258fb806091ed9c28b236f43948 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let redComponent = CGFloat.random(in: 0.0...1.0) | |
let greenComponent = CGFloat.random(in: 0.0...1.0) | |
let blueComponent = CGFloat.random(in: 0.0...1.0) | |
let alphaComponent = CGFloat.random(in: 0.0...1.0) | |
let randomColor = NSColor(red: redComponent, green: greenComponent, blue: blueComponent, alpha: alphaComponent) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment