GRASS (programming language): Difference between revisions

Content deleted Content added
ZGrass and UV-1: Removing reference for supported platforms (not in the source)
m Example: {{sxhl}}
Tag: nowiki added
Line 45:
 
==Example==
{{sxhl|2=basic|1=<nowiki/>
SINCURVE=[PROMPT "WHAT IS THE OFFSET?"
INPUT OFFSET
Line 52 ⟶ 53:
angle=angle+2
IF (x=x+1)<159,SKIP -2]
}}
 
This text creates a new macro called <code>SINCURVE</code> that can be called simply by typing <code>SINCURVE</code> into the command prompt, or from other macros or programs. SINCURVE uses two local variables, <var>x</var> and <var>angle</var>, as well as a global variable, <var>OFFSET</var>.