mirror of
https://github.com/wassname/svg2cube.git
synced 2026-07-25 13:30:05 +08:00
40 lines
632 B
Markdown
Executable File
40 lines
632 B
Markdown
Executable File
gen-svg-cube
|
|
|
|
This package makes isometric cubes. It takes in svg's and renders them from a given side at a given resolution.
|
|
|
|
# Quickstart
|
|
TODO
|
|
|
|
# Screenshots
|
|
## Input:
|
|
<img src="images/input.png" style="max-width: 20em;"></img>
|
|
|
|
## Output:
|
|
<img src="images/result.png" style="max-width: 20em;"></img>
|
|
|
|
## GUI
|
|
<img src="images/gui.png" style="max-width: 20em;"></img>
|
|
|
|
# Installation
|
|
`npm i`
|
|
|
|
# Usage
|
|
From the command line:
|
|
|
|
```sh
|
|
nde svg2cube-cli.js inputs/panels.svg
|
|
```
|
|
|
|
Or in node:
|
|
|
|
```js
|
|
var svg2cube = require('./svg2cube.js');
|
|
svg2cube('inputs/panels.svg',{rotateY: 45, size:256});
|
|
```
|
|
|
|
# Author
|
|
wassname.org
|
|
|
|
# License
|
|
MIT
|