PaintCode Expressions
Operators
!b boolean logical negation of b
x * y numbers product of numbers x and y
//Based on https://github.com/ngs/color-hash.swift | |
import UIKit | |
import XCPlayground | |
//magic numbers taken from original | |
let seed = CGFloat(131.0) | |
let seed2 = CGFloat(137.0) | |
let maxSafeInteger = 9007199254740991.0 / seed2 |