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
- Host: GitHub
- URL: https://github.com/nativescript/nativescript-canvas
- Owner: NativeScript
- Created: 2015-12-01T13:26:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-16T07:54:49.000Z (almost 8 years ago)
- Last Synced: 2025-08-23T06:26:35.297Z (3 months ago)
- Language: C++
- Homepage:
- Size: 75.5 MB
- Stars: 49
- Watchers: 16
- Forks: 15
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
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.