An open API service indexing awesome lists of open source software.

https://github.com/nativescript/nativescript-canvas

HTML5-like 2D and WebGL canvas implementation for NativeScript
https://github.com/nativescript/nativescript-canvas

Last synced: 3 months ago
JSON representation

HTML5-like 2D and WebGL canvas implementation for NativeScript

Awesome Lists containing this project

README

          

# This plugin is no longer supported
About
============
This is a proof-of-concept plugin that enables HTML5 like Canvas API for NativeScript. The code is not production ready and a lot of features are currently missing. You can check the overall progress in [this](https://github.com/NativeScript/nativescript-canvas/issues/1) issue.

Contributing
============

The project encourages hacking, so hack away. Clone the repo and follow the steps to set yourself up for development.

Prerequisites:
* `npm i -g grunt-cli`
* iOS: XCode
* Android: Android NDK, SDK and Ant

```shell
npm install # install canvas library dependencies
cd test
npm install # install test project dependencies
tns run android # fire up the test project on android
tns run ios # fire up the test project on ios
```

After making modifications to the canvas library, regardless whether it's the iOS, Android or JS part, you can re-launch with your changes like so:

```shell
npm i .. && rm -rf platforms && tns run
```

You can skip the `rm -rf platforms` part when you don't change the public interface of the native bits.