This library opens up the idea of the CO2-Countdown to creative communities of coders, designers and artists associated with p5*js and JavaScript.
Co2Budget Library
- based on Carbon-Clock
- by Mercator Research Institute on Global Commons and Climate Change (MCC) gGmbH
- https://www.mcc-berlin.net/fileadmin/data/clock/carbon_clock.htm
- Version 1.5 | 07.05.2020
- by Olaf Val
- CC BY 4.0
Syntax:
co2B = new Co2Budget(s, agr);
co2B.budgetT()
co2B.budgetTString()
co2B.budgetKt()
co2B.budgetKtString()
co2B.budgetMt()
co2B.budgetMtString()
co2B.budgetGt()
co2B.time()
co2B.years()
co2B.months()
co2B.days()
co2B.hours()
co2B.minutes()
co2B.seconds()
Parameters:
s = Scenario (1.5 or 2)
agr = Annual Growth Rate (1)
(Linking from GitHub doesn’t work in p5js online editor currently.) https://raw.githubusercontent.com/OlafVal/Co2Budget.js/master/Co2Budget.js
Place this line in the header of your html code:
<script src="https://raw.githubusercontent.com/OlafVal/Co2Budget.js/master/Co2Budget.js"></script>
or
(Recommended for the p5js online editor.)
- Sign up to receive updates in case the research data should change!
- Newsletter
the multifaceted designs others have already developed for the CO2 countdown! I am also happy to publish your contribution on the Co2Budget.js-project-page.