Hi Peter,
I tried to convert your example to ScriptBasic but have a couple questions.
For i=v to <1
This syntax isn't supported in SB. Can you post a traditional BASIC equivalent?
The Line_Draw() function in SB requires a value generated by the RGB() function for color. When I printed c with the first iteration it was 1 (one).