Skip to content

Instantly share code, notes, and snippets.

View MibMoot's full-sized avatar

MibMoot MibMoot

View GitHub Profile
@MibMoot
MibMoot / html_colors.js
Last active December 9, 2017 13:57
All HTML5 colors compiled into an array and object.
/**
* Array from @bobspace [https://gist.github.com/bobspace]
* Object from @OneCent01 [https://gist.github.com/OneCent01] [Modified heavily]
*
* Usage: html_colors.arr[m]
* html_colors.obj["color"]
*
* Example:
for(i in html_colors.arr) {
console.log(html_colors.obj[html_colors.arr[i]]);