vasturiano / three-spritetext

A sprite based text component for ThreeJS
https://vasturiano.github.io/three-spritetext/example/basic/
MIT License
340 stars 46 forks source link

Add solid or semi-transparent background option #3

Closed Public-Health-Bioinformatics closed 4 years ago

Public-Health-Bioinformatics commented 6 years ago

Just a feature request to add an additional background color and transparency parameter that would enable text to stand out in a noisy environment. I presume this isn't too hard to do when generating sprite?

vasturiano commented 6 years ago

Thanks @Public-Health-Bioinformatics, that seems like a useful addition. I'll keep this issue open until I have a bit of time to add the functionality in. :)

Public-Health-Bioinformatics commented 6 years ago

Ok! Your project is greatly appreciated by me! Last week I created http://genepio.org/ontotrek/index.html and was able to (temporarily) solve the "semi-transparent" background problem by injecting a 2nd sprite behind the text. But having that be right in the text itself would be much better. Cheers, Damion

Peque commented 4 years ago

@vasturiano Any updates on this matter? :innocent:

vasturiano commented 4 years ago

Thanks for the reminder @Peque!

Following the css box model syntax, I've just added a few attributes that make this possible:

See the example.

Peque commented 4 years ago

@vasturiano That is awesome. :heart_eyes:

Thanks to you!