Coder Social home page Coder Social logo

olafval / co2budget.js Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 2.0 4.94 MB

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

JavaScript 99.94% HTML 0.06%
p5js p5js-library javascript climate-change p5 climate-data co2-emission co2-emissions co2 ecological-footprint

co2budget.js's Introduction

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.

co2budget.js's People

Contributors

olafval avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.