nichot20

Add-Fibre.js

Feb 14th, 2021 (edited)
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Adds 12 fibres to a tube node
  2.  
  3. var fibres= [
  4.     "1-Blue",
  5.     "2-Orange",
  6.     "3-Green",
  7.     "4-Brown",
  8.     "5-Slate",
  9.     "6-White",
  10.     "7-Red",
  11.     "8-Black",
  12.     "9-Yellow",
  13.     "10-Violet",
  14.     "11-Rose",
  15.     "12-Aqua"
  16. ];
  17.  
  18. fibres.forEach(create_fibres);
  19.  
  20. function create_fibres(item) {
  21.     child= node.createChild(item);
  22.   };
  23.  
  24. c.statusInfo = "Tube fibres added";
Advertisement
Add Comment
Please, Sign In to add comment