Skip to content

This library opens up the idea of the CO2-countdown to creative communities of coders, designers and artists using the p5*js project.

Notifications You must be signed in to change notification settings

OlafVal/CO2Budget.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

co2-countdown

Co2Budget.js

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

Reference

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)

Embed the Co2Budget.js library online to stay up-to-date automatically!

(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

Download the library package as ZIP-File:

(Recommended for the p5js online editor.)

  • Sign up to receive updates in case the research data should change!
  • Newsletter

Examples

Co2-Budget-Basic view / code

Commands view / code


Check out

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.