Continuous Lines

Hi

Does anyone know a good way to use something like the line node or even a curve shader to draw a continous 2d line in the style of background scenery from an old computer game? (like in the image attached)

Cheers

Screen shot 2010-05-13 at 08.41.28.png (20.2 kB)