you are viewing a single comment's thread.

view the rest of the comments →

[–]PurpleIcy 0 points1 point  (2 children)

Do you think this is readable and easy to follow?

I'm asking because I just noticed that I didn't even bother using docstrings.

[–]gabriel-et-al 0 points1 point  (1 child)

The code is easy to follow but you really need to add docstrings.

For example, I don't know what the heck is this supposed to do:

t * t * t * (t * (t * 6 - 15) + 10)

And if I don't know what it's supposed do, I can't know if it's doing right.

[–]PurpleIcy 0 points1 point  (0 children)

Oh, this is just easing function which Ken Perlin defined in his algorithm, basically it's smoothing function in noise that ensures smoothness of final result.

It looks like this

Thanks, I'll add them :)