using the sine function for smooth changes in stuff | ScratchStats