not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
13 KiB

  1. {
  2. "HIGHLIGHTSTROKECOLORS": [
  3. [
  4. "logic",
  5. "#000000"
  6. ]
  7. ],
  8. "ARGPLUGINS": [
  9. [
  10. "myxor",
  11. "var block = logo.blocks.blockList[blk];var conns = block.connections;block.value = logo.parseArg(logo, turtle, conns[1]) >> logo.parseArg(logo, turtle, conns[2]);"
  12. ],
  13. [
  14. "myand",
  15. "var block = logo.blocks.blockList[blk];var conns = block.connections;block.value = logo.parseArg(logo, turtle, conns[1]) & logo.parseArg(logo, turtle, conns[2]);"
  16. ],
  17. [
  18. "myor",
  19. "var block = logo.blocks.blockList[blk];var conns = block.connections;block.value = logo.parseArg(logo, turtle, conns[1]) | logo.parseArg(logo, turtle, conns[2]);"
  20. ],
  21. [
  22. "mysl",
  23. "var block = logo.blocks.blockList[blk];var conns = block.connections;block.value = logo.parseArg(logo, turtle, conns[1]) << logo.parseArg(logo, turtle, conns[2]);"
  24. ],
  25. [
  26. "mysr",
  27. "var block = logo.blocks.blockList[blk];var conns = block.connections;block.value = logo.parseArg(logo, turtle, conns[1]) >> logo.parseArg(logo, turtle, conns[2]);"
  28. ],
  29. [
  30. "mynot",
  31. "var block = logo.blocks.blockList[blk];var conns = block.connections;block.value = ~ logo.parseArg(logo, turtle, conns[1]);"
  32. ]
  33. ],
  34. "PALETTEHIGHLIGHTCOLORS": [
  35. [
  36. "logic",
  37. "#FF9FFF"
  38. ]
  39. ],
  40. "PALETTEPLUGINS": [
  41. [
  42. "logic",
  43. "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"55\" height=\"55\" viewBox=\"0 0 55 55\"><g transform=\"matrix(1.25 0 0 1.25-7.5-6.25)\"><g font-family=\"Sans\" word-spacing=\"0\" line-height=\"125%\" letter-spacing=\"0\" font-size=\"11\"><text x=\"33.891\" y=\"39.844\"><tspan x=\"33.891\" y=\"39.844\" fill=\"#fff\">0</tspan></text><g fill=\"#000\"><text x=\"33.792\" y=\"27\"><tspan x=\"33.792\" y=\"27\" fill=\"#fff\">1</tspan></text><text x=\"19.18\" y=\"40\"><tspan x=\"19.18\" y=\"40\" fill=\"#fff\">1</tspan></text><text x=\"19.275\" y=\"26.844\"><tspan x=\"19.275\" y=\"26.844\" fill=\"#fff\">0</tspan></text></g></g><g fill=\"#fff\" stroke=\"#fff\"><path d=\"m10.5 14.5h35\"/><path d=\"m15.5 44.5v-35\"/></g></g></svg>"
  44. ]
  45. ],
  46. "BLOCKPLUGINS": [
  47. [
  48. "myxor",
  49. "var LogicTwoArgBlock = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['logic']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.twoArgMathBlock(); block.defaults.push(1); block.defaults.push(1);};var LogicArgBlock = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['logic']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.defaults.push(0);};LogicTwoArgBlock('myxor', 'XOR');"
  50. ],
  51. [
  52. "myand",
  53. "var LogicTwoArgBlock = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['logic']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.twoArgMathBlock(); block.defaults.push(1); block.defaults.push(1);};var LogicArgBlock = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['logic']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.defaults.push(0);};LogicTwoArgBlock('myand', 'AND');"
  54. ],
  55. [
  56. "myor",
  57. "var LogicTwoArgBlock = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['logic']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.twoArgMathBlock(); block.defaults.push(1); block.defaults.push(1);};var LogicArgBlock = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['logic']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.defaults.push(0);};LogicTwoArgBlock('myor', 'OR');"
  58. ],
  59. [
  60. "mysl",
  61. "var LogicTwoArgBlock = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['logic']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.twoArgMathBlock(); block.defaults.push(1); block.defaults.push(1);};var LogicArgBlock = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['logic']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.defaults.push(0);};LogicTwoArgBlock('mysl', '&lt;&lt;');"
  62. ],
  63. [
  64. "mysr",
  65. "var LogicTwoArgBlock = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['logic']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.twoArgMathBlock(); block.defaults.push(1); block.defaults.push(1);};var LogicArgBlock = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['logic']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.defaults.push(0);};LogicTwoArgBlock('mysr', '&gt;&gt;');"
  66. ],
  67. [
  68. "mynot",
  69. "var LogicTwoArgBlock = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['logic']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.twoArgMathBlock(); block.defaults.push(1); block.defaults.push(1);};var LogicArgBlock = function (name, label) { var block = new ProtoBlock(name); block.palette = palettes.dict['logic']; blocks.protoBlockDict[name] = block; block.staticLabels.push(label); block.adjustWidthToLabel(); block.oneArgMathBlock(); block.defaults.push(0);};LogicArgBlock('mynot', 'NOT');"
  70. ]
  71. ],
  72. "PALETTEFILLCOLORS": [
  73. [
  74. "logic",
  75. "#ff00ff"
  76. ]
  77. ],
  78. "PALETTESTROKECOLORS": [
  79. [
  80. "logic",
  81. "#C700D3"
  82. ]
  83. ]
  84. }