Giter Site home page Giter Site logo

covid19-animation-generator's Introduction

COVID-19 Animation Generator

Node.js CI

Generates an animation based on COVID-19 daily data.

Sample

Requirements

  • Node 12.x
  • Gulp: npm install -g gulp

Initialize

  • Run: npm install

Build

  • Clean: gulp clean
  • Build: gulp build

Running

node dist/main

The data is downloaded automatically

Parameters

  • --help (optional): Displays a help message and exits.
  • --source (optional): Sets the data source. Default: global. Possible values:
    • global: Compare countries
    • us: Compare states (US)
    • chile: Compare regions (Chile)
  • --schema (optional): Sets the color schema. Default: dark. Possible values:
    • dark: Dark theme
  • --layout (optional): Sets the output layout. Default: vertical. Possible values:
    • square: Square layout (1250x1250)
    • vertical: Vertical layout (1080x1920)
    • horizontal: Horizontal layout (1920x1080)
  • --days (optional): Number of days for which the animation will be generated. Default: 20. Use 0 to plot all days.
  • --frames (optional): Number of frames per day. Default: 30.
  • --extraFrames (optional): Number of extra frames for the last image. Default: 300.

Examples

  • node dist/main
  • node dist/main --source global
  • node dist/main --layout square
  • node dist/main --source us --layout vertical
  • node dist/main --source us --layout vertical --frames 20

Output

The generated images will be in the output directory

Generate animation

You can generate an animation (60 fps). Requires ffmpeg. Run:

npm run video

The video will be here: output/animation.mp4

covid19-animation-generator's People

Contributors

juancri 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.