NanoCanvas is a portable vector graphics engine using JavaScript binding of NanoVG. NanoCanvas is build on top of Duktape, NanoVG and OpenGL2(or GLESv2).
- Mac OS X
- Linux
- Windows
- iOS/Android(TODO)
- OpenGL2
- GLESv2
- premake5
$ premake5 gmake
$ cd build
$ make
Visual Studio 2015 is required to build an example.
> premake5.exe vs2015
> cd build
Open solution file and build it with Visual Studio 2015.
Visual Studio 2013 may work. To compile with Visual Studio 2013 use the following premake flag.
> premake5.exe vs2013
See example/main.cc
and example/input.js
.
$ cd build
$ ./example
$ cd build
$ ./example ../game/game.js
NanoCanvas example code is licensed under MIT license.
NanoCanvas uses third party libraries. See LICENSES
file for more details.
Game assets are by Hyptosis. Licensed under CC-BY 3.0. http://opengameart.org/content/lots-of-free-2d-tiles-and-sprites-by-hyptosis
- More HTML5 compatible APIs.
- Expressive error handling.
- Expressive error report of parsing JavaScript code.
- Refactor source code.
- Text paragraph
- Mouse interaction