Coder Social home page Coder Social logo

stepheneb / seasons Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 4.0 20.25 MB

WebGL visualization for learning about seasons, you need a WebGL-enabled browser

Home Page: http://stepheneb.github.io/seasons/index.html

Ruby 0.05% JavaScript 93.81% Shell 0.03% CSS 3.09% Scheme 0.01% HTML 3.01%

seasons's Introduction

Seasons visualizations using WebGL

These are deployed here: http://stepheneb.github.io/seasons/index.html

To run locally: ruby -run -e httpd . -p 9090 and open http://localhost:9090/index.html

The code for integrating this work as a WISE4 step is located here: wise4/node.

There are rake tasks for generating and locally deploying the WISE4 step version of seasons.

  • rake wise4:generate_step

    generate WISE4 step in: ./wise4/dist/node/seasons

  • rake wise4:copy_step_to_local_vle

    copy WISE4 seasons step to local vle: $CATALINA_HOME/webapps/vlewrapper/vle/node/seasons

The copy_step_to_local_vle task is useful for testing the seasons step if you have a local instance of WISE4 running.

See: https://code.google.com/p/wise4/wiki/StableWISEDeploymentModel

These three Seasons Activities all now support persistence to json:

  1. Investigation 1: What Temperature Patterns Do You See?
  2. Investigation 2: What Is the Shape of Earth's Orbit?
  3. Investigation 3: How Does Earth’s Tilt Affect Temperature?

When any one of these activities are loaded a seasons_activity object is created with toJSON() and fromJSON() methods:

Startup activity and save initial state:

a1 = seasons_activity.toJSON()

Add rows to experiment table, manipulate your view of the Earth and save a new state:

a2 = seasons_activity.toJSON()

Restore initial activity state: the experiment table and graph will be empty and the position of the Earth will be as it was when the visualization first started.

seasons_activity.fromJSON(a1)

Restore second activity state: the experiment table and graph will be filled as before and the position of the Earth will be as it was when the state was saved the second time.

seasons_activity.fromJSON(a2)

seasons's People

Contributors

stepheneb avatar hirokiterashima avatar

Stargazers

某个大叔 avatar Hou Chunlei avatar Michael Anthony avatar Yuan Liu avatar  avatar Dr. Baba Kofi Weusijana avatar Lindsay Kay avatar Doug Holton avatar  avatar

Watchers

 avatar  avatar James Cloos avatar Michael Anthony avatar  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.