Home
Random
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Sandbox/IJReid/Geological data
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
base = { } --Variables etc rgb = {} rgb["Mesozoic"] = { [1] = 7, [2] = 202, [3] = 234,} rgb["Cretaceous"] = { [1] = 111, [2] = 200, [3] = 107,} rgb["Jurassic"] = { [1] = 0, [2] = 187, [3] = 231,} rgb["Triassic"] = { [1] = 153, [2] = 78, [3] = 150,} Mesozoic = 244445 start = {} start["Mesozoic"] = 251.902 start["Cretaceous"] = 145 start["Jurassic"] = 201.3 start["Triassic"] = start["Mesozoic"] --Period color function base.periodcolor = function(period, format) if format == "rgb255" then return rgb[period[1]] .. ", " .. rgb[period[2]] .. ", " .. rgb[period[3]] end if format == "rgb1" then local conversion_holder1 = rgb[period[1]] / 255 local conversion_holder2 = rgb[period[2]] / 255 local conversion_holder3 = rgb[period[3]] / 255 return conversion_holder1 .. ", " .. conversion_holder2 .. ", " .. conversion_holder3 end end base.periodstart = function(period) return start[period] end return base
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:Sandbox/IJReid/Geological data/doc
(
edit
)