meta-client
Version:
Meta.js (Client)
48 lines (45 loc) • 1.68 kB
HTML
<html>
<head>
<style>
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro');
@import url('https://fonts.googleapis.com/css?family=Open+Sans');
.text{
position: fixed;
//font-family: 'Source Sans Pro', sans-serif;
font-family: 'Open Sans', sans-serif;
font-size: 50pt;
line-height:95pt;
width: 100vw;
height:100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: left;
color: yellow;
font-style: italic;
text-shadow:-1px -1px 0 #000, 1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000;
}
</style>
</head>
<body>
<script src="./index.js"></script>
<div class="text">
<!--
new Meta({</br>
graphics: new Graphics({</br>
model: 'Helmet.gltf'</br>
}, true)</br>
}).live("on", meta => {</br>
meta.rotate("left", .01)</br>
})
new Model('helmet')</br>
.live("on", meta => {</br>
meta.rotate("right", .01)</br>
})
-->
new M('helmet')</br>
.l("o", m =></br>
m.r("r", .01))</br>
</div>
</body>
</html>