tguerin / newton

An Easy To Use Particle Emitter
https://newton.7omtech.fr
MIT License
22 stars 7 forks source link

Having trouble using a custom shape (ImageShape) #20

Closed orkun1675 closed 7 months ago

orkun1675 commented 8 months ago

Great package, thank you for sharing!

I'm guessing because of these lines: https://github.com/tguerin/newton/blob/main/lib/src/particles/shape.dart#L93-L94

The image size is hardcoded to be 500x500 and doesn't play well with other image sizes.

Would it be possible to address that?

tguerin commented 8 months ago

Thanks for the feedback, image width and height should be used here you're right. Will fix that.