Syntax Highlighing:
comments, key words, predefined symbols, class members & methods, functions & classes
# SineWaveQry
# Line CartoScript to draw "sine wave"
# custom line style.
# Script from Using CartoScripts tutorial.
# Set line color and width
LineStyleSetColor(0,0,0);
LineStyleSetLineWidth(3);
# Set sine wave parameters
angle = 0; space = 4;
# Draw line
while (LineStyleRoll(space) <> 1) {
angle = angle + 1; # in radians
a = sin(angle) * 5; # amplitude
if (a > 0) then LineStyleLineTo(90,a);
else LineStyleLineTo(-90,abs(a));
}