Empirical
Classes | Namespaces
Animate.h File Reference

Manage animations on a web site. More...

#include <functional>
#include "../base/assert.h"
#include "../base/vector.h"
#include "Button.h"
#include "emfunctions.h"
#include "JSWrap.h"
#include "Widget.h"

Go to the source code of this file.

Classes

class  emp::web::Animate
 An object that, when active, repeatedly calls a function as fast as possible, to a maximum of 60 frames per second. More...
 

Namespaces

 emp
 If we are in emscripten, make sure to include the header.
 
 emp::web
 

Detailed Description

Manage animations on a web site.

Note
This file is part of Empirical, https://github.com/devosoft/Empirical
Date
2015-2017

To build an animation, you must provide a function to be run repeatedly. When Start() is triggered, the function will be called 60 time per second (or as close as possible), until Stop() is caled.