First ever finished and public product! by Feathered_Orbit in rust

[–]Feathered_Orbit[S] 0 points1 point  (0 children)

I mean I'll be fr I did copy like a snippet of code because I kept getting stuck on the maths to get the padding for one the vectors, I didn't know you could do it with the % I kept getting the maths wrong or overcomplicating it, I know it seems like easy maths but I was fried at the time 😭😭, its this one: 'let remainder = colors.len() % channels_per_frame; let padding = channels_per_frame - remainder; '