ADONIS
Reference Manual
×
Menu
Index
Comments
 
Single Line Comments:
Single line comments start with //. Any text between // and the end of the line will be ignored (will not be executed). The following example uses a single-line comment before each code line:
 
Example:
// Draw line:
line("startPoint",0,0,"endPoint",5,0)
// Export Image:
exportmodel("image","filename","C:/Portable/ADONIS/test.png")
 
Multi-line Comments:
Multi-line comments start with /* and end with */. Any text between /* and */ will be ignored. The following example uses a multi-line comment (a comment block) to explain the code:
 
Example:
/*
The code below will create
a circle with center at 0,0
and radius equal with 10
(number of segment is 40)
*/
var cx = 0;
var cy = 0;
var rad = 5;
var nseg = 5;
circle("centerPoint",cx,cy,"radius",rad,"numSeg",nseg)
The help manual was created with Dr.Explain