Advanced - Scripting
Scripting Example: Mini swirl flowers x6
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 ...
Scripting Example: Rose
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 ...
Scripting Example: Triskelion x5
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]; ...
Scripting Example: Hexegon x6
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++) { ...
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 ...