Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
three-spritetext
Advanced tools
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 have its orientation fixed relative to the camera.
import SpriteText from 'three-spritetext';
or
var SpriteText = require('three-spritetext');
or even
<script src="//unpkg.com/three-spritetext"></script>
then
var myText = new SpriteText('My text');
var myScene = new THREE.Scene();
myScene.add(myText);
SpriteText ([text, textHeight, color])
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 color of the text. | 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 |
If this project has helped you and you'd like to contribute back, you can always buy me a ☕!
FAQs
A sprite based text component for ThreeJS
The npm package three-spritetext receives a total of 10,401 weekly downloads. As such, three-spritetext popularity was classified as popular.
We found that three-spritetext demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.