{"repo":"vasturiano/three-spritetext","free":true,"listed":false,"github":"https://github.com/vasturiano/three-spritetext","clone":"git clone https://github.com/vasturiano/three-spritetext.git","description":"A sprite based text component for ThreeJS","language":"JavaScript","stars":377,"topics":["sprite","threejs","text"],"license":"MIT","category":"game-templates","readme_excerpt":"three-spritetext ============== [![NPM package][npm-img]][npm-url] [![Build Size][build-size-img]][build-size-url] [![NPM Downloads][npm-downloads-img]][npm-downloads-url] A sprite based text component for ThreeJS. The text is drawn to canvas, converted into a Texture and then used as a material on a Sprite. Because a sprite is being used, the text will always face the camera, and has its orientation fixed relative to the camera. Quick start or using a script tag then API reference Constructor SpriteText ([ text , textHeight , color ]) Properties Property Description Default --- --- :--: text The text to be displayed on the sprite. Supports center aligned multi-lines, using the \\n character to define line breaks. textHeight The height of the text. 10 color The fill color of the text. white backgroundColor The canvas background color. A falsy value makes the canvas transparent. false strokeWidth The width of the text stroke, proportional to the text size. A value of 0 disables stroking. 0 strokeColor The color of the text stroke. white fontFace The font type of the text. Arial fontSize The resolution of the text, in terms of vertical number of pixels. Lower values may cause text to look blurry. Higher values will yield sharper text, at the cost of performance. 90 fontWeight The weight (or boldness) of the font. The weights available depend on the font-family you are using. normal padding The amount of padding between the text and the canvas edge. Supports either single values,","default_branch":null,"files":null,"tree":[],"storefront":"/r/vasturiano","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vasturiano/three-spritetext/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}