sine to draw triangle | ScratchStats