#Draw Circle with changing radius efficiently

4 messages · Page 1 of 1 (latest)

bleak cloud
#

The bevy examples show circles filled in. I don't see an example for how to draw with Stroke.
I tried bevy lyons example and there the shape component doesn't inherit from default components so I can't query on the shape builder to change the radius.

I tried removing and spawning a new lyon shape bundle (with new radius) frequently, this led to performance issues & feels wrong to me - I feel like there should be an idiomatic way of querying a radius and adjusting the radius of a circle.

Maybe I need to use a specific mesh or texture?

#

🤔 I could use an image and do its transform scaling but that seems un-idiomatic

spark vault
#

I think (not sur) lyon is generating a mesh, so unless you recreate the mesh or modify it (which maybe lyon has stuff for but it wouldn't surprise me it does not), I think scaling would be your best bet

dark tapir