aframe-food-component

1.0.1 • Public • Published

aframe-food-component

Version License

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

2

Version

1.0.1

License

MIT

Unpacked Size

135 kB

Total Files

18

Last publish

Collaborators

  • banadaa