aframe-food-component
1.0.1 • Public • Published aframe-food-component
Turn any picture of food into a 3D object for A-Frame.
API
Property |
Description |
Default Value |
src |
image |
null |
Usage
<a-entity food src="yourfoodpicture.jpg"></a-entity>
You can crop an image for use with this component using this tool.
Install and use by directly including the browser files:
<head>
<title>My A-Frame Scene</title>
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-food-component/dist/aframe-food-component.min.js"></script>
</head>
<body>
<a-scene>
<a-entity food src="yourfoodpicture.jpg"></a-entity>
</a-scene>
</body>
Package Sidebar
Install
npm i aframe-food-component
Weekly Downloads