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:
This is an advanced feature: see Scripting Explained. To make this print: Use this script: const polygon = (x, y, size, ang, n) => { var result = []; var delta = 2 * Math.PI / n; ang = ang * 2 * Math.PI / 360; for (var i = 0; i <= n; i++) { ...
This is an advanced feature: see Scripting Explained. To make this print: Use this script: const rose = (centerX, centerY, stepCount, turns, n, d, A) => { var results = []; var k = n / d; var stepSize = turns * 2 * Math.PI / (stepCount); for ...
This is an advanced feature: see Scripting Explained. To make this print: Use this script: var CENTER_X = 126, CENTER_Y = 84; function reverse(arr) { var res = []; for (var i = 0; i < arr.length; i += 2) { res[i] = arr[arr.length - i -2]; ...
This is an advanced feature: see Scripting Explained. To make this print: Use this script: const rose = (centerX, centerY, stepCount, turns, n, d, A) => { var results = []; var k = n / d; var stepSize = turns * 2 * Math.PI / (stepCount); for ...
In the shape toolbar you'll find the edit shape function ( ). You'll find several options in the Edit Image screen. Height - Create Taller Prints One way to create taller prints is to increase the number of layers you are printing. Note that you ...