Does anyone know how to draw a small firework using Processing?

Does anyone know how to draw a small firework using processing?

1616188254361

1616188280331

Hi @SantosCuccia ,

Maybe this helps:

2 Likes

hey did u end up solving how to do it?

Hi and welcome

I was looking for an example with no arrays

Hi @ams I’d suggest you post a new topic with your question and share the code you have already written. Please read the guidelines on asking questions and don’t forget to add the Homework tag to your post :wink:

1 Like

It’s a little difficult without arrays.

You would need for each particle/ shrapnel
x1,y1 pair and x2,y2 pair and so on

1 Like

OR you do it in a for loop and esch iteration represents one shrapnel

Then calculate with increasing radius and angle and cos and sin

1 Like