Interface für simulierte Qubits (repräsentiert as 3D-Vektor) https://www.victorgiers.com/qubeenee
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.

visual_logic_2019-06-07_18-17-32.xml 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. <xml xmlns="http://www.w3.org/1999/xhtml">
  2. <tab name="Init" type="InitTab" active="false" scrollx="315.18908691406244" scrolly="420.6076965332031" scale="0.7462349768006044">
  3. <variables>
  4. <variable type="" id="U?SMwCJdbQuF-Xah3ja#">ctrlInit</variable>
  5. <variable type="" id=";D?T^;K0%2HHlr__^(^G">cinitx</variable>
  6. <variable type="" id="A70x?DA^cBEdQM}CSBbn">cinity</variable>
  7. <variable type="" id="w=H!aVrvW@Z|RSm{)pBV">cinitz</variable>
  8. </variables>
  9. <block type="addHTMLElement" id="Ob_h`2Mp@/Ot47MRmc4v" x="-30" y="-390">
  10. <field name="ELEMENT">input</field>
  11. <value name="ID">
  12. <block type="text" id="k#.GGV22dQssz6~=B.Dz">
  13. <field name="TEXT">lightness</field>
  14. </block>
  15. </value>
  16. <next>
  17. <block type="setHTMLElemAttribute" id="bmdxN^mA;yGbS(miqgn1">
  18. <field name="ATTRIBUTE">type</field>
  19. <field name="PARENT">FALSE</field>
  20. <value name="VALUE">
  21. <block type="text" id="EMMNB$uuC52q2z|.$^%@">
  22. <field name="TEXT">range</field>
  23. </block>
  24. </value>
  25. <value name="ID">
  26. <block type="text" id="v(*@7utS?.qQ){12Wwbs">
  27. <field name="TEXT">lightness</field>
  28. </block>
  29. </value>
  30. </block>
  31. </next>
  32. </block>
  33. <block type="initSettings" id="j!,W}Q)OOTZiaz|^.^3#" x="-270" y="-330">
  34. <field name="LOAD_COMP_ASSETS">FALSE</field>
  35. <field name="FULLSCREEN">FALSE</field>
  36. <field name="BKG_TRANSPARENCY">TRUE</field>
  37. <field name="PRESERVE_DRAW_BUF">FALSE</field>
  38. <field name="FADE_ANNOTATIONS">TRUE</field>
  39. </block>
  40. <block type="variables_get" id="U-I3R~y`|ELjej+a$oZ+" x="-430" y="-250">
  41. <field name="VAR" id="U?SMwCJdbQuF-Xah3ja#" variabletype="">ctrlInit</field>
  42. </block>
  43. <block type="addHTMLElement" id="516CWdn7I~0F6Z`|@iYi" x="-30" y="-210">
  44. <field name="ELEMENT">input</field>
  45. <value name="ID">
  46. <block type="text" id="z)VUePk;wHeNi0NgV:1$">
  47. <field name="TEXT">hue</field>
  48. </block>
  49. </value>
  50. <next>
  51. <block type="setHTMLElemAttribute" id="9L5eZ)jE.l2%LwGp;JU}">
  52. <field name="ATTRIBUTE">type</field>
  53. <field name="PARENT">FALSE</field>
  54. <value name="VALUE">
  55. <block type="text" id="N{0wU}XX{qh29IK9[a2P">
  56. <field name="TEXT">range</field>
  57. </block>
  58. </value>
  59. <value name="ID">
  60. <block type="text" id="_G,A/Ps%pkR_l-1/N[n]">
  61. <field name="TEXT">hue</field>
  62. </block>
  63. </value>
  64. </block>
  65. </next>
  66. </block>
  67. <block type="addHTMLElement" id="l#Y#~sFI3oj86xMq6J#9" x="-30" y="-70">
  68. <field name="ELEMENT">input</field>
  69. <value name="ID">
  70. <block type="text" id="-t4xhUsgdL1.n+}A,@;]">
  71. <field name="TEXT">saturation</field>
  72. </block>
  73. </value>
  74. <next>
  75. <block type="setHTMLElemAttribute" id="wEs~`lNFzbOpt07ll.o/">
  76. <field name="ATTRIBUTE">type</field>
  77. <field name="PARENT">FALSE</field>
  78. <value name="VALUE">
  79. <block type="text" id="d.8QqsS|VC$e;Ovm4tF}">
  80. <field name="TEXT">range</field>
  81. </block>
  82. </value>
  83. <value name="ID">
  84. <block type="text" id="dzKN-gHDt%W-IZp^@O$J">
  85. <field name="TEXT">saturation</field>
  86. </block>
  87. </value>
  88. </block>
  89. </next>
  90. </block>
  91. <block type="setHTMLElemStyle" id="m$[cd}79`:^a:HOD]i|-" x="-290" y="50">
  92. <field name="PROPERTY">backgroundColor</field>
  93. <field name="PARENT">FALSE</field>
  94. <value name="VALUE">
  95. <block type="text" id="aQ3?p%(*0e{+M^Xp*Wlf">
  96. <field name="TEXT">rgb(127,127,127)</field>
  97. </block>
  98. </value>
  99. <value name="ID">
  100. <block type="HTMLBody" id="a4{xLiQ~`h|$M!=$J=WA"></block>
  101. </value>
  102. <next>
  103. <block type="variables_set" id="3eXK:U}rvNBlMbMn9%X/">
  104. <field name="VAR" id=";D?T^;K0%2HHlr__^(^G" variabletype="">cinitx</field>
  105. <next>
  106. <block type="variables_set" id="}ZJaz!]CA+G$]4uH.d22">
  107. <field name="VAR" id="A70x?DA^cBEdQM}CSBbn" variabletype="">cinity</field>
  108. <next>
  109. <block type="variables_set" id="=;M(5St{V@Z}]6%Ow?%8">
  110. <field name="VAR" id="w=H!aVrvW@Z|RSm{)pBV" variabletype="">cinitz</field>
  111. </block>
  112. </next>
  113. </block>
  114. </next>
  115. </block>
  116. </next>
  117. </block>
  118. </tab>
  119. <tab name="Main" type="MainTab" active="true" scrollx="254.9215698242188" scrolly="207.0859800768706" scale="0.6915447592732265">
  120. <variables>
  121. <variable type="" id="vG99U|`lU,3SOsjwD]~h">dragging</variable>
  122. </variables>
  123. <block type="whenClicked" id="VqdFSAMNy2s9dV;DeF8R" x="-210" y="-290">
  124. <mutation enableifmissed="false"></mutation>
  125. <value name="VALUE">
  126. <block type="objectList" id="PH*#jp%0:0P`YjJL[ku%">
  127. <field name="FIELDNAME">bit</field>
  128. </block>
  129. </value>
  130. <statement name="DO">
  131. <block type="controls_if" id="~JL75kPc/~8LDxp#,=?d">
  132. <mutation else="1"></mutation>
  133. <value name="IF0">
  134. <block type="logic_compare" id="caQpt~RfDW,voHUh^7(}">
  135. <field name="OP">EQ</field>
  136. <value name="A">
  137. <block type="getObjectMaterial" id="q=LE[/,okO~Zz_K$:YDC">
  138. <value name="VALUE">
  139. <block type="objectList" id="q6X3:!j.g=|4J_(9yVpl">
  140. <field name="FIELDNAME">bit</field>
  141. </block>
  142. </value>
  143. </block>
  144. </value>
  145. <value name="B">
  146. <block type="materialList" id="aOT`wJZ!v60cr+BOb~g?">
  147. <field name="FIELDNAME">white</field>
  148. </block>
  149. </value>
  150. </block>
  151. </value>
  152. <statement name="DO0">
  153. <block type="assignMaterial" id="Yz9wxOI2aD;%z2u1mNQR">
  154. <value name="VALUE2">
  155. <block type="materialList" id=".767#`#J0Vgx+TS_tk5:">
  156. <field name="FIELDNAME">black</field>
  157. </block>
  158. </value>
  159. <value name="VALUE1">
  160. <block type="objectList" id=".*yUn3lEEHmT.;U.U=9U">
  161. <field name="FIELDNAME">bit</field>
  162. </block>
  163. </value>
  164. </block>
  165. </statement>
  166. <statement name="ELSE">
  167. <block type="assignMaterial" id="sjLg:fuR`C(lpYMB+6][">
  168. <value name="VALUE2">
  169. <block type="materialList" id="Dk{Jv.%Zr`NW7WH~m.c*">
  170. <field name="FIELDNAME">white</field>
  171. </block>
  172. </value>
  173. <value name="VALUE1">
  174. <block type="objectList" id=")3=!79V?aBN.ie1`GzaT">
  175. <field name="FIELDNAME">bit</field>
  176. </block>
  177. </value>
  178. </block>
  179. </statement>
  180. </block>
  181. </statement>
  182. </block>
  183. <block type="whenClicked" id="A8mV__l^wUszs3DbQ7$N" x="330" y="-210">
  184. <mutation enableifmissed="false"></mutation>
  185. <value name="VALUE">
  186. <block type="objectList" id="^..(2_C{cjY1$PhHX9XQ">
  187. <field name="FIELDNAME">qubit_controller</field>
  188. </block>
  189. </value>
  190. </block>
  191. <block type="console.log" id="As^HsX;v.s^_~I8P@VUC" x="110" y="-90">
  192. <value name="VALUE">
  193. <shadow type="text" id="OK4Jg/:;P7wbw[Ou_O%8">
  194. <field name="TEXT">I'm here!!!</field>
  195. </shadow>
  196. <block type="getObjTransform" id="$~E#vXslQkMP7VxA%rlR">
  197. <field name="MODE">position</field>
  198. <field name="COORD">x</field>
  199. <value name="TARGETOBJ">
  200. <block type="objectList" id="?VT!{ZFRgc-Z)z9K#$ph">
  201. <field name="FIELDNAME">qubit_controller</field>
  202. </block>
  203. </value>
  204. </block>
  205. </value>
  206. <next>
  207. <block type="console.log" id="02^Qjxmz}kR4f,;]o%s@">
  208. <value name="VALUE">
  209. <shadow type="text" id="OK4Jg/:;P7wbw[Ou_O%8">
  210. <field name="TEXT">I'm here!!!</field>
  211. </shadow>
  212. <block type="getObjTransform" id="G9AM~?:eT@Ox2Aso]PUW">
  213. <field name="MODE">position</field>
  214. <field name="COORD">y</field>
  215. <value name="TARGETOBJ">
  216. <block type="objectList" id="S}]s?crWU]Pt+21DxtJ@">
  217. <field name="FIELDNAME">qubit_controller</field>
  218. </block>
  219. </value>
  220. </block>
  221. </value>
  222. <next>
  223. <block type="console.log" id="pwYbDA;h[(mD25KkAk.0">
  224. <value name="VALUE">
  225. <shadow type="text" id="OK4Jg/:;P7wbw[Ou_O%8">
  226. <field name="TEXT">I'm here!!!</field>
  227. </shadow>
  228. <block type="getObjTransform" id="@PaR,?b[!w}*$Gp2=Z!:">
  229. <field name="MODE">position</field>
  230. <field name="COORD">z</field>
  231. <value name="TARGETOBJ">
  232. <block type="objectList" id="-GK8h[(_Eh`Oq5syIGr;">
  233. <field name="FIELDNAME">qubit_controller</field>
  234. </block>
  235. </value>
  236. </block>
  237. </value>
  238. </block>
  239. </next>
  240. </block>
  241. </next>
  242. </block>
  243. <block type="whenDraggedOver" id="x7;j`9Tr6$fIW]tXfLwm" x="-290" y="10">
  244. <mutation do_start="true" do_drop="true"></mutation>
  245. <value name="VALUE">
  246. <block type="objectList" id="7NXm)etu[.=wr}w^i(Ap">
  247. <field name="FIELDNAME">qubit</field>
  248. </block>
  249. </value>
  250. <statement name="DO_START">
  251. <block type="variables_set" id="eNK;t*J%F~uJO=[zG?AX">
  252. <field name="VAR" id="vG99U|`lU,3SOsjwD]~h" variabletype="">dragging</field>
  253. <value name="VALUE">
  254. <block type="logic_boolean" id="841)@T98^7NCqG4`w6v;">
  255. <field name="BOOL">TRUE</field>
  256. </block>
  257. </value>
  258. </block>
  259. </statement>
  260. <statement name="DO_MOVE">
  261. <block type="dragMove" id="5{hamS]l^diNZ_?={UNM">
  262. <field name="MODE">XYZ</field>
  263. <value name="TARGETOBJ">
  264. <block type="objectList" id="rHOSmM)n,Q}U{eykuH}|">
  265. <field name="FIELDNAME">qubit_controller</field>
  266. </block>
  267. </value>
  268. </block>
  269. </statement>
  270. <statement name="DO_DROP">
  271. <block type="variables_set" id=".imkai}p%@]H[B{QaZQ9">
  272. <field name="VAR" id="vG99U|`lU,3SOsjwD]~h" variabletype="">dragging</field>
  273. <value name="VALUE">
  274. <block type="logic_boolean" id="0lTQKy,efJp9QazizGqd">
  275. <field name="BOOL">FALSE</field>
  276. </block>
  277. </value>
  278. </block>
  279. </statement>
  280. </block>
  281. <block type="eventHTMLElem" id="eCEc)Ggl.eBC.?,)6#+1" x="-310" y="230">
  282. <field name="EVENT">keyup</field>
  283. <field name="PARENT">FALSE</field>
  284. <value name="ID">
  285. <block type="HTMLDocument" id="SPAec47h~$D}X.y8Y_^B"></block>
  286. </value>
  287. <statement name="DO">
  288. <block type="controls_if" id="7/nR6h+xSb^wI./$mjoO">
  289. <value name="IF0">
  290. <block type="logic_compare" id="Uq*3^1OnztB^eI=Mnx$F">
  291. <field name="OP">EQ</field>
  292. <value name="A">
  293. <block type="variables_get" id="S.l+j/sJjCvmQ*HVGJhW">
  294. <field name="VAR" id="vG99U|`lU,3SOsjwD]~h" variabletype="">dragging</field>
  295. </block>
  296. </value>
  297. <value name="B">
  298. <block type="logic_boolean" id="%PZl!^r9vwd-RMf@~%?/">
  299. <field name="BOOL">TRUE</field>
  300. </block>
  301. </value>
  302. </block>
  303. </value>
  304. <statement name="DO0">
  305. <block type="controls_if" id=";a5uu{15}P|LoqGcr-(*">
  306. <mutation elseif="1"></mutation>
  307. <value name="IF0">
  308. <block type="logic_compare" id="P8Q:jT|C^t^Wq+Ra2/d1">
  309. <field name="OP">EQ</field>
  310. <value name="A">
  311. <block type="getEventProperty" id="zd/N5Jo^g9dOp..PDn8?">
  312. <field name="PROPERTY">key</field>
  313. </block>
  314. </value>
  315. <value name="B">
  316. <block type="text" id="|f5t;YOCo|qz*(vn)?RA">
  317. <field name="TEXT">MouseWheelEvent</field>
  318. </block>
  319. </value>
  320. </block>
  321. </value>
  322. <statement name="DO0">
  323. <block type="console.log" id="V1i/e;pN`Bf741L9aV-^">
  324. <value name="VALUE">
  325. <shadow id="l+2Um13XToljrpM@f]1B" type="text">
  326. <field name="TEXT">go left!</field>
  327. </shadow>
  328. <block type="text" id="LS+oM.57v)!lFl6t`j{%">
  329. <field name="TEXT">go back</field>
  330. </block>
  331. </value>
  332. </block>
  333. </statement>
  334. <value name="IF1">
  335. <block type="logic_compare" id="[v,P#Um-[?q[=A*.Cptt">
  336. <field name="OP">EQ</field>
  337. <value name="A">
  338. <block type="getEventProperty" id="3Mex?:9HXLR-S.f6,xes">
  339. <field name="PROPERTY">key</field>
  340. </block>
  341. </value>
  342. <value name="B">
  343. <block type="text" id="v_BqYY^x^XmW8*fli^|A">
  344. <field name="TEXT">Mouse3</field>
  345. </block>
  346. </value>
  347. </block>
  348. </value>
  349. <statement name="DO1">
  350. <block type="console.log" id="r|ieNMkm]7r8j|z]SzC;">
  351. <value name="VALUE">
  352. <shadow id="l+2Um13XToljrpM@f]1B" type="text">
  353. <field name="TEXT">go left!</field>
  354. </shadow>
  355. <block type="text" id="qktRds_NwY;qhiDj9f0A">
  356. <field name="TEXT">go forth</field>
  357. </block>
  358. </value>
  359. </block>
  360. </statement>
  361. </block>
  362. </statement>
  363. </block>
  364. </statement>
  365. </block>
  366. </tab>
  367. <editorsettings width="935" height="597"></editorsettings>
  368. </xml>