XKCDColorsByIndex

Author: Divinux

Description
Modified version of XKCDColors. More information there. This variation still uses the same color data, but is accessible by index rather than by name. This gives you the ability to get a random color instead of having to call it by name beforehand.

Usage


Drop the xkcdcolors.txt into your Assets folder. Get it from the original source (and delete the first line) OR use the copy below. Then attach xkcdColorReader.cs to any GameObject. You can now call GenerateColor(int) to get a random vColor object that contains a name, hex value, and unity color object.

History

 * 13 July 2016 - Release