robotColor takes an html element and creates an array of randomly generated, alternating color blocks for each letter.
The current version of the script is a jQuery extension modularized as a requireJS module, therefor it depends on both jquery and require.
The basic usage takes an HTML element like:
<header>robotColor</header>
The javascript side looks like:
$('header').robotColor();
Copyright © 2012 Rebecca Murphey.
This work is licensed under the Creative Commons Attribution-Share Alike 3.0 license. You are free to share and remix the work, and to use it for commercial purposes under the following conditions:
- Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
- Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.
Any of these conditions can be waived if you get permission from the copyright holder.