This file contains 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
-- passing a table like {255, 100, 20} | |
function application:rgbToHex(rgb) | |
local hexadecimal = '0X' | |
for key, value in pairs(rgb) do | |
local hex = '' | |
while(value > 0)do | |
local index = math.fmod(value, 16) + 1 |
This file contains 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |