Is it possible to conceive of the following in mathematical terms:

a periodic/cyclic function tending to an ever increasingly straight line, reaching infinitely close, before becoming equivalent to y=x.

in other words, is it possble to arrive at a straight line by other means than y=x, such that, given specified proportions, numbers, magnitudes, one could create a formula to produce a straight line without recourse to y=x?