Skip to content

Instantly share code, notes, and snippets.

Mat Cegiela cegiela

Block or report user

Report or block cegiela

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cegiela / ColorHash
Created Mar 17, 2017
Just the code for repeatably hashing a string into a color
View ColorHash
//Based on
import UIKit
import XCPlayground
//magic numbers taken from original
let seed = CGFloat(131.0)
let seed2 = CGFloat(137.0)
let maxSafeInteger = 9007199254740991.0 / seed2
You can’t perform that action at this time.