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

What is this black border around the canvas? #26

Open patrickatkeylogic opened 3 years ago

patrickatkeylogic commented 3 years ago

I'm seeing a black border and I'm not sure what's causing it and can't get rid of it. Seeing it on all browsers I try.

border

Here's my usage:

const label = new SpriteText("Sprite Text", 9);
label.borderColor = "white";
label.padding = 2;
label.borderRadius = 3;
label.backgroundColor = '#214a64';
this.add(label);
vasturiano commented 3 years ago

@patrickatkeylogic thanks for reaching out.

I'm unable to reproduce your case. Could you make a simple example on https://codepen.io/ that shows your case?

Also, are you setting any borderWidth in your code?