Cindy Script...
…is an easy to learn yet still very powerful functional language. It is designed to allow high-level interaction with geometric constructions or physical simulations created in
Cinderella.2. Nevertheless, it can also be used as a standalone language for performing mathematical calculations.
There are three ways to use the
CindyScript language within
Cinderella.2. One can write
CindyScript expressions as parts of
functions in a
Cinderella construction. One can type
CindyScript commands in a command shell to, e.g., immediately set properties such as colors and sizes of geometric elements.
However, the most common way to use
CindyScript is to write programs in
the script editor. Here, one can specify the occasion on which the program will be executed. For instance, it can be executed after every move of the construction. Another possibility is to execute the program on any mouse click. In this way, one can easily add functional behavior and graphical enhancements to an existing construction.
Reference
- General Concepts
- Entering Program Code
- Variables and Functions
- Accessing Geometric Elements
- Control Operators (if, repeat, while, …)
- Arithmetic Operators (+, -, *, /, sin(), cos(), …)
- Boolean Operators
- String Operators
- Lists (the general concepts)
- Drawing (draw(), plot(), …)
- Geometric Operators (join, meet, …)
- Calculus (derivatives and tangents, …)
- Special Operators