Smothing a line

for an ongoing project I’ve done some poly line smoothing
it’s not complicated algorithm I can explain it if it’s interesting to you
I need to do removing unnecessary points too but this is good just for itself
test it with btn smooth
and to mention too that recursion should be removed with for loop to avoid maximum iterations of 256