Coder Social home page Coder Social logo

vvavves's Introduction

VVavves

Live site

Overview

VVavves is a whimsical simulation of sailboats adrift in the endless sea. The environment changes constantly over time: The wind picks up, the wind dies down; rain and snow come and go; the days slowly pass in a beautiful, mystical haze.

Implementation

VVavves is built in HTML5 canvas and vanilla JavaScript.

The waves themselves are stored as collections of points. The points' vertical motion is based on a sin wave, allowing them to rise and fall smoothly. They move horizontally based on a global tide variable, which periodically changes its acceleration (again, allowing for smooth speed transitions).

The rendering is accomplished by drawing quadratic curves between the midpoints of each successive pair of points. This ensures a continuous curve; drawing curves between the points themselves results in a disjoint where each curve meets the next, due to how the curves are calculated.

Upcoming Features

Feel like playing god with our intrepid little sailboats? Soon, you'll have total control over all the environmental variables; adjust the wind speed, precipitation, wave amplitude, and lighting, all to you your heart's content.

vvavves's People

Contributors

audreyburk avatar

Watchers

James Cloos 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.