Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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