Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/burodepeper/ufo-to-canvas
Draw UFO data on a JavaScript canvas
https://github.com/burodepeper/ufo-to-canvas
Last synced: 3 days ago
JSON representation
Draw UFO data on a JavaScript canvas
- Host: GitHub
- URL: https://github.com/burodepeper/ufo-to-canvas
- Owner: burodepeper
- Created: 2015-11-09T18:13:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-22T18:21:57.000Z (almost 9 years ago)
- Last Synced: 2023-03-02T07:22:53.866Z (over 1 year ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ufo-to-canvas
Draw UFO data on a JavaScript canvas
Status: active development
## Plan de campagne
Current plan-de-campagne and a small peek into what may come. I have absolutely no fixed plan, and I'll just see where this goes and/or ends up.
- [x] write a more convenient tool to parse the .glif-xml into a json-object.
- [x] create a UFOglif object, and pass the glyph-data and a reference to the UFO object as parameters
- [x] create a canvas and draw the contours of the glyph
- [ ] describe a possible API
- [ ] convert into a package sort of thing.
- [ ] create some sort of user-interface as a demo## Usage (planned)
```js
var ufo = new UFO();
ufo.setSrc(url, callback);var glyph = ufo.loadGlyph(name);
glyph.setContainer("#glyph-0020");
```### Class UFO
### Class UFOglif