This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| π Morning 63 commits βββββββββββββββββββββ 15.1% | |
| π Daytime 174 commits βββββββββββββββββββββ 41.8% | |
| π Evening 151 commits βββββββββββββββββββββ 36.3% | |
| π Night 28 commits βββββββββββββββββββββ 6.7% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 3, | |
| "metadata": { | |
| "scrolled": true | |
| }, | |
| "outputs": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // From http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/ | |
| // Start with a temperature, in Kelvin, somewhere between 1000 and 40000. (Other values may work, | |
| // but I can't make any promises about the quality of the algorithm's estimates above 40000 K.) | |
| function colorTemperatureToRGB(kelvin){ | |
| var temp = kelvin / 100; |