Skip to content

Instantly share code, notes, and snippets.

View iiviigames's full-sized avatar
🎮
https://twitch.tv/iiviigames

Vee Flynn iiviigames

🎮
https://twitch.tv/iiviigames
View GitHub Profile
@iiviigames
iiviigames / color-conversion-algorithms.js
Created April 6, 2019 11:14 — forked from mjackson/color-conversion-algorithms.js
RGB, HSV, and HSL color conversion algorithms in JavaScript
/**
* Converts an RGB color value to HSL. Conversion formula
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
* Assumes r, g, and b are contained in the set [0, 255] and
* returns h, s, and l in the set [0, 1].
*
* @param Number r The red color value
* @param Number g The green color value
* @param Number b The blue color value
* @return Array The HSL representation
@iiviigames
iiviigames / README.md
Created March 6, 2019 17:11 — forked from gabrielflorit/README.md
SCRIPT-8