C.a.R. > Demos > Scripting

Applets and web pages can communicate using scripting. We demonstrate this with a simple applet, a command line to enter construction commands, and a text area to get and put the complete construction.

The language used for the command line is built into C.a.R. It is possible to load construction programs from external files in that language, even with macro definitions.


Enter the following commands here. By some unknown reason, the first command will take a while to connect with the applet. Subsequent commands are faster.

name(true)
color(green)
a=s(B,C)
b=s(C,A)
c=s(A,B)

In the following box, you can use the buttons to get or set the construction from the applet in XML code.