View source for Module:Weather box/colors
From The Goon Show Depository
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local w = {}
local math_mod = require('Module:Math')
local function hex( value )
return string.format("%02X", value)
end
local function format_line( background, text_color )
return "background: #" .. background .. "; color:#" .. text_color .. ";"
end
local function range_pos( value, start, stop )
if start < stop then
if value < start then
return 0
elseif value > stop then
return 1
else
return (value - start) / (stop - start)
end
000
1:0
Template used on this page:
Return to Module:Weather box/colors.