Scripting Explained

Scripting Explained

You can write JavaScript statements to tell Foodini what to print, giving you precise control. Many schools like this feature for a fun way to teach kids how to code.

Don't know JavaScript? Don't worry! This is an advanced feature for those that want it; it's not required to use Foodini.

Select Scripting from new shape options. You'll see a box where you can enter JavaScript statements. For example:


The script will show your dish as this icon:
It does not matter if you resize the icon or move it; the script statements determine where it will print and associated variables. 

Note that you can print scripts with other shapes on the dish. 

The script code above will result in a print like this:



(See this video in youku/ 请观看优酷视频)

Scripting Example: Hexegon x6
Scripting Example: Triskelion x5
Scripting Example: Rose
Scripting Example: Mini swirl flowers x6