1>下載AFRAME樣版,A-Frame boilerplate,點選 ZIP即可下載
2>開啟ZIP目錄的index.html,可以用文字編輯器,程式如下
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello, World! ??A-Frame</title>
<meta name="description" content="Hello, World! ??A-Frame">
<script src="https://aframe.io/releases/0.2.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
<a-sphere position="0 1.25 -1" radius="1.25" color="#EF2D5E"></a-sphere>
<a-cube position="-1 0.5 1" rotation="0 45 0" width="1" height="1" depth="1" color="#4CC3D9"></a-cube>
<a-cylinder position="1 0.75 1" radius="0.5" height="1.5" color="#FFC65D"></a-cylinder>
<a-plane rotation="-90 0 0" width="4" height="4" color="#7BC8A4"></a-plane>
<a-sky color="#ECECEC"></a-sky>
</a-scene>
</body>
</html>
沒有留言:
張貼留言