-
-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] features not working properly on Two.Texture obj #665
Comments
I can confirm that the Are you using the latest version? The default values are repeated because of the way SVG works. Two.js aims to create consistencies between different rendering types. That being said, I'm trying to rewrok the |
Describe the bug
After creating a texture neither the
texture.scale
, nor thetexture.className
, nor thetexture.image.style
features do a thing on the texture...To Reproduce
Steps to reproduce the behavior:
tex = new two.Texture('[image-url]')
rect.fill = tex
tex.scale = 0.5
Expected behavior
for the texture to change according to either the
className
or modifying it.Screenshots
here I scale it to the canvas width and move it to the center:
then when I resize the window, the image should resize:
but as you can see here, the image seems to be resized but it's not, you can see it tilling when it should be smaller:
Environment (please select one):
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
the
texture.repeat
doesn't work either... it should by default not repeat, but as you can see in the screenshots it repeats...the image used is from another web page, not loaded locally...
I'm applying the texture to a
path.stroke
...The text was updated successfully, but these errors were encountered: