Skip to content
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

render sprite / texture option? #184

Open
olliejday opened this issue Jan 8, 2021 · 0 comments
Open

render sprite / texture option? #184

olliejday opened this issue Jan 8, 2021 · 0 comments

Comments

@olliejday
Copy link

olliejday commented Jan 8, 2021

Hi,

Thanks for sharing this!

Is there any documentation?

In particular, the option render.sprite.texture to set an image in matter js and also the fillStyle options don't seem to work

<Circle x={500} y={100} radius={50} options={{ render: { fillStyle: '#f55a3c', sprite: { texture: "./p.png", }, }, }} />

@olliejday olliejday changed the title using svgs - renderclones? using svg sprites? Jan 9, 2021
@olliejday olliejday changed the title using svg sprites? render sprite / texture option? Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant