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
/** | |
Extensions.swift | |
- Create a linear gradient texture for a SKShapeNode and SKSpriteNode | |
- UIColor from hex value | |
- Get (n)th character of a string | |
- Convert string to float | |
Based on Extensions.swift by Craig Grummit (https://gist.github.com/craiggrummitt/ad855e358004b5480960) | |
Swift 2 Compatability by Ray Hughes (https://gist.github.com/RayHughes/3162fcbda6439893b539) |