Heres some Freebasic code to do what I think you are after.
For each x position
Calculate y1 and y2 positions (roughly 90 degress apart (see +1.3 below))
Do some lighting
Draw lines (here you would texture something interesting instead of just drawing a plain line)
Screen 19,32
Dim As Integer x,y1,y2,c
For x=0 To 799
y1=200+Sin(x/30.0)*20
y2=200+Sin(x/30.0+1.3)*20
If y1>y2 Then
c=RGB(30,30,30)
Else
c=RGB((y2-y1)*7+50,10,50)
End if
Line (x,y1)-(x,y2),c
Next
SLEEP