Turn any picture of food into a 3D object for A-Frame.
Property | Description | Default Value |
---|---|---|
src | image | null |
<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>