aframe-text-sprite
A wrapper for THREE.TextSprite.
dependencies
setup
npm
npm install SeregPie/aframe-three
npm install aframe-text-sprite
ES module
import 'aframe';
import 'aframe-text-sprite';
browser
<script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="https://unpkg.com/three.texttexture"></script>
<script src="https://unpkg.com/three.textsprite"></script>
<script src="https://unpkg.com/aframe-text-sprite"></script>
properties
property | type |
---|
color | 'color' |
fillStyle | 'string' |
fontFamily | 'string' |
fontStyle | 'string' |
fontVariant | 'string' |
fontWeight | 'string' |
lineWidth | 'number' |
maxFontSize | 'number' |
minFontSize | 'number' |
padding | 'number' |
redrawInterval | 'number' |
strokeStyle | 'string' |
text | 'string' |
textLineHeight | 'number' |
textSize | 'number' |