Project:PizzaPrinter: Difference between revisions
From London Hackspace Wiki
→Examples
Line 179: | Line 179: | ||
pz.add_layer("crust"); | pz.add_layer("crust"); | ||
pz.add_layer("sauce"); | pz.add_layer("sauce"); | ||
pz.add_layer('mozzarella'); | |||
pz.add_layer("aubergine"); // throws warning, no aubergines available. | pz.add_layer("aubergine"); // throws warning, no aubergines available. | ||
pz.add_layer("tomato"); | pz.add_layer("tomato"); | ||
pz.add_layer("oregano"); | pz.add_layer("oregano"); | ||
pz.print(); // throws warning, pizza not bound to printer | pz.print(); // throws warning, pizza not bound to printer |