Skip to content

Instantly share code, notes, and snippets.

View rhernandog's full-sized avatar
🐯

Rodrigo Hernando rhernandog

🐯
View GitHub Profile
{
"colorNames": [
{"name": "AliceBlue", "code":"#F0F8FF"},
{"name": "AntiqueWhite", "code":"#FAEBD7"},
{"name": "Aqua", "code":"#00FFFF"},
{"name": "Aquamarine", "code":"#7FFFD4"},
{"name": "Azure", "code":"#F0FFFF"},
{"name": "Beige", "code":"#F5F5DC"},
{"name": "Bisque", "code":"#FFE4C4"},
{"name": "Black", "code":"#000000"},
@rhernandog
rhernandog / color-names.js
Last active December 30, 2017 15:43
Javascript file with all the web-safe colors shown here https://www.w3schools.com/colors/colors_names.asp
const colors = [
{name: "AliceBlue", code:"#F0F8FF"},
{name: "AntiqueWhite", code:"#FAEBD7"},
{name: "Aqua", code:"#00FFFF"},
{name: "Aquamarine", code:"#7FFFD4"},
{name: "Azure", code:"#F0FFFF"},
{name: "Beige", code:"#F5F5DC"},
{name: "Bisque", code:"#FFE4C4"},
{name: "Black", code:"#000000"},
{name: "BlanchedAlmond", code:"#FFEBCD"},
@rhernandog
rhernandog / pixi-sprite-generator.js
Last active September 21, 2016 04:03
Suggestion of a class that returns a PIXI Sprite object with a simple configuration.
/* CREATE PIXI SPRITE CLASS
* In order to clean the code create a class that returns the sprite
* for the background image.
* Most common cases for sprites are position, scale, width, height,
* anchor and alpha;
* @param {string} the image url
* @param {object} configurations of the sprite
*/
var createPixiSprite = function(imgURL, config){