@sk8verse/bento
v1.0.4
Published
🍱 Assembles a fresh bento box of texture
Downloads
4
Readme
🍱 @sk8verse/bento
Assembles a bento box texture that can be wrapped around a board.
It looks like this
|------|------|-|------|
| | | | whls |
| B | | | |
| O | T | |------|
| T | O | | trks |
| T | P | | |
| O | | |------|
| M | | | brng |
| | | | |
|------|------|-|------|
Roadmap
- [x] Build bento.sk8verse.xyz to serve persisted textures
- [ ] Render Trucks, Wheels and Bearings
- [ ] Render "Rim" and remove duplication from .gltf
Installation
yarn add @sk8verse/bento
Usage
import { makeBento } from '@sk8verse/bento'
class Example extends Component {
const bento = await makeBento(bottmURL, topURL)
return <img src={bento.toDataURL()} alt="sk8ordie" />
}
License
MIT ©