- Home
- Deutsch
- Skripten / Logik
- [Erledigt] Umwandeln von Dezimalwert in Hexadezimal
[Erledigt] Umwandeln von Dezimalwert in Hexadezimal
This topic has been deleted. Only users with topic management privileges can see it.
-
Moin zusammen,
ich probiere schon seit ein paar Tagen einen Wert von Dezimal in Hexadezimal umzuwandel, um einen Regenbogeneffekt hinzubekommen von meinen Philipps Hue Lampen an meinem Zigbee-Stick.
Ausgegeben werden müste der Wert als "#ffffff"
Das Hochzählen der des Dezimalwertes habe ich hinbekommen, nur das Konvertiren des Wertes Dez zu Hex scheitert.
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="" id="-utEBYIT{y?0Fp:,bvK">Dezzahl</variable>
<variable type="undefined" id="Intervall">Intervall</variable>
<variable type="" id="GhTeN.#4I!YfUjU~r,$M">Hexzahl</variable>
</variables>
<block type="on_ext" id="u.Q~piRnj|omAHtKLiSg" x="-1812" y="-812">
<mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="BGjC1==@QpU4vSy|?@F9">
<field name="oid">admin.0.Farben.Farbverlauf</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="80ksR#5F|UrCS2p|%O0F">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="5j,-x:S1Tx0=F,=7sdbN">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="$rw4bC)K[?Vi}rAIo8B"> <field name="ATTR">val</field> <field name="OID">admin.0.Farben.Farbverlauf</field> </block> </value> <value name="B"> <block type="logic_boolean" id="cKpRQpkz%C03e
SqKu1;">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id=")jWz/90)wOxx$%mZ/Es$">
<field name="VAR" id="-utEBYIT{y?0Fp:,bvK" variabletype="">Dezzahl</field>
<value name="VALUE">
<block type="text" id="Zda]W04LxY8~/V*,(0V"> <field name="TEXT">0</field> </block> </value> <next> <block type="timeouts_setinterval" id="0]X{DDTfb;ggDxm8;A!%"> <field name="NAME">Intervall</field> <field name="INTERVAL">1000</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="math_change" id="y,n.OTs98.6@$VB+rc72"> <field name="VAR" id="-utEBYIT{y?0Fp:,b*vK" variabletype="">Dezzahl</field> <value name="DELTA"> <shadow type="math_number" id="Ww[]16glr4+LuP=dHR}Y"> <field name="NUM">1</field> </shadow> </value> <next> <block type="update" id="Iz+p8aDsgH3bc/Wye
O/">
<mutation delay_input="false"></mutation>
<field name="OID">admin.0.Farben.Farbwert</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="-sz1k.=1=_~vLnntv/@q">
<field name="VAR" id="GhTeN.#4I!YfUjU~r,$M" variabletype="">Hexzahl</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="timeouts_clearinterval" id="ESrL@s?W9!52}X^1iOAp">
<field name="NAME">Intervall</field>
<next>
<block type="update" id="6L-@+|0Fr{!x=)Fy6#Ia">
<mutation delay_input="false"></mutation>
<field name="OID">admin.0.Farben.Farbwert</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="6^f)5_-z8gYBjc.
0?f">
<field name="TEXT">0</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
<block type="procedures_defcustomreturn" id="]BwPNp.fP4h:LJ4-x,fk" x="-1237" y="-688">
<mutation statements="false"></mutation>
<field name="NAME">etwas tun</field>
<field name="SCRIPT">cmV0dXJuIDA7</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
</block>
</xml>Was muss in die JS-Funktion?
Lösung:
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="a4e%T%,JW%O(,dRNbR9">Stufe</variable>
<variable type="interval" id="zblau">zblau</variable>
<variable id="mS!6,L2[dj%]kfYUjVa(">blau</variable>
<variable id=":deI$b^hsl[$!iw[6HW">gruen</variable> <variable id="*7^:Ge!s+aCF+0PQTsFS">rot</variable> </variables> <block type="on_ext" id="%TyYGKyoEi,A_)_liLE0" x="-1013" y="-687"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="e!~xO^S6K_.MHKLBk!pI"> <field name="oid">admin.0.Farben.Farbverlauf</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="%2oK7gyAMcFz)j62cRB@"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="++Aj@/eOf1hV
,P#B]NL">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="}0[yCEhP{M~5N%gGmR."> <field name="ATTR">val</field> <field name="OID">admin.0.Farben.Farbverlauf</field> </block> </value> <value name="B"> <block type="logic_boolean" id="40#a8wpni!T$KOrx,_qH"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_repeat_ext" id="o?TA23Z|u;k]-0i1,9Dc"> <value name="TIMES"> <shadow type="math_number" id="Nrd4xDaCrLvB/RVp|Rnc"> <field name="NUM">1</field> </shadow> </value> <statement name="DO"> <block type="variables_set" id="asX[{ph8+jzudz=x%z.$"> <field name="VAR" id="a4e%T%,JW%O(,dR*NbR9">Stufe</field> <value name="VALUE"> <block type="math_number" id="R3tE9}6[(w39
D962|u4">
<field name="NUM">2</field>
</block>
</value>
<next>
<block type="variables_set" id="kvF?J0}TrN[s|GrT8Gv(">
<field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field>
<value name="VALUE">
<block type="math_number" id="r]:BHEKWDt{;t;bVN],;">
<field name="NUM">100</field>
</block>
</value>
<next>
<block type="variables_set" id="lZY/VpX_H6SXn!j4N@?C">
<field name="VAR" id=":deI$b^hsl[$!iw[6HW">gruen</field> <value name="VALUE"> <block type="math_number" id="qnUT|UI,W0x?g,KB[3P3"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="6zV^,xlZE?_c5fA[o3;U"> <field name="VAR" id="*7^:Ge!s+aCF+0PQTsFS">rot</field> <value name="VALUE"> <block type="math_number" id="!:F!mB3h3KJ[ezVDq2n#"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="timeouts_setinterval" id="=p8$Lz+OQhLD_IOwUE*K"> <field name="NAME">zblau</field> <field name="INTERVAL">1500</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="control_ex" id="#SjL[r(
#C!JeYr^sClw">
<field name="TYPE">false</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="OID">
<shadow type="field_oid" id="$/AQY-c~%yy![pi=5m!F">
<field name="oid">zigbee.0.group_1.color</field>
</shadow>
</value>
<value name="VALUE">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="logic_boolean" id="_l8I-jX]EZsz-?V~wX!">
<field name="BOOL">TRUE</field>
</shadow>
<block type="colour_rgb" id="ByQ*-1Til(Yy00!vjmj]">
<value name="RED">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="dSCcZ(upQDDIefo,Yv%R">
<field name="NUM">100</field>
</shadow>
<block type="variables_get" id=")0V)/8}Z6^0t*bd!En"> <field name="VAR" id="*7^:Ge!s+aCF+0PQTsFS">rot</field> </block> </value> <value name="GREEN"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="3A!e3:GJ-u,H;PWHT/5W"> <field name="NUM">50</field> </shadow> <block type="variables_get" id="[6kPuhq
n4mtNfcr5|"> <field name="VAR" id=":deI$b^hsl[$!
iw[6HW">gruen</field>
</block>
</value>
<value name="BLUE">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="wVCqScdUD9Y+L/9uRgT">
<field name="NUM">0</field>
</shadow>
<block type="variables_get" id="^Fv(NX5KEssjpIsEDKw2">
<field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field>
</block>
</value>
</block>
</value>
<value name="DELAY_MS">
<shadow type="math_number" id=";oE!4J3J,;)x{5?+YBX"> <field name="NUM">0</field> </shadow> </value> <next> <block type="controls_if" id="0jSP{C^:IWOJ8A#Kf2KP"> <mutation elseif="12"></mutation> <value name="IF0"> <block type="logic_operation" id="@t6TkuTH]2Y4@l~0x-D/"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="mL8_zRsdn#W2wUujEVqq"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="N{=26f[:U1bWYaP04K:;"> <field name="VAR" id="a4e%T%,JW%O(,dR*NbR9">Stufe</field> </block> </value> <value name="B"> <block type="math_number" id="mVX{+RV{ZQ8zt3=xR1ml"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="]1ul^/^G-]KZ7_%-/L@N"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="|w2:FGPl3}_6=-;g:,p~"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="u,$6A@X|8OW60FY(t%
2">
<field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field>
</block>
</value>
<value name="B">
<block type="math_number" id="oun;=$de4br//AP.N%65">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="3pLf$Gjzb|@Zm:v8I9-H">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id=",7okd7|Tp3AI;gvPydMC">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="Z-l$L~3QLn=b=npRf#!"> <field name="VAR" id=":deI$b^hsl[$!
iw[6HW">gruen</field>
</block>
</value>
<value name="B">
<block type="math_number" id="Mbr..vb~t1GM4:9J~QS"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="^;E+4rASAf
wwc1=G%2u">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="!l3*(gCpjv_Xo.3F}!s"> <field name="VAR" id="*7^:Ge!s+aCF+0PQTsFS">rot</field> </block> </value> <value name="B"> <block type="math_number" id="Ax#xLdhVb6gIL1@lZ_AN"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="math_change" id="t
3_uPLTi+j$?ms$qT67">
<field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field>
<value name="DELTA">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="](rN|waG2;XjMpsNuvso">
<field name="NUM">1</field>
</shadow>
<block type="math_number" id="TM:EL+OVzgp:Gw5;j=k"> <field name="NUM">2</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_operation" id="RJ}P[;)h1m[Y!giKcLr/"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id=".3vQX5z3!Ui.()Y^q?0b"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="TNMelvIJ_VG=pd{/p8NY"> <field name="VAR" id="a4e%T%,JW%O(,dR*NbR9">Stufe</field> </block> </value> <value name="B"> <block type="math_number" id="d!)Q^-MXlOfcE;KA.j.K"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="zG,W8trD.Jq]1^NjTT*X"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="qbLs.yfB[EC
.V1eO]wv">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="V#]2zjwny06uvH##3/,6">
<field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field>
</block>
</value>
<value name="B">
<block type="math_number" id="gVBkA9ln8x%Jsg@|58}H">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="!A8khiZDIbM]bMTBUJ)"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="[]USAudF=I|QvhpDPqz_"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="O
ZPQqdu=Fgo|pmN/Cq">
<field name="VAR" id=":deI$b^hsl[$!iw[6HW">gruen</field> </block> </value> <value name="B"> <block type="math_number" id="z,3NvX~o*YDz,@nE,%KE"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="HwQk7q9zC0GX%xdg4Ge|"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id=",DmrX~8Hm#f{0Hbgh*h="> <field name="VAR" id="*7^:Ge!s+aCF+0PQTsFS">rot</field> </block> </value> <value name="B"> <block type="math_number" id="bDFDkb)20hdl4?ytGTd0"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="E?POY([|
An7wZon6ogd">
<field name="VAR" id="a4e%T%,JW%O(,dRNbR9">Stufe</field>
<value name="VALUE">
<block type="math_number" id="LTrDmc^2pq.%~_aoTn1v">
<field name="NUM">2</field>
</block>
</value>
</block>
</statement>
<value name="IF2">
<block type="logic_operation" id="!%tXhx%m3A9R53.v[Qz}">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="Hd2.:|oy(#8yy(#s;K}:">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="60b,j7|YKMUEb1t;@1[g">
<field name="VAR" id="a4e%T%,JW%O(,dRNbR9">Stufe</field>
</block>
</value>
<value name="B">
<block type="math_number" id="XbK}3#CUrg.~xZC2a)e"> <field name="NUM">2</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="Fq3{:*yz(X:W:W-
DV)2">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="ldr-e1viggmwf!XMXOe?">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="smq=eqwg1aB?chi0h/x"> <field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field> </block> </value> <value name="B"> <block type="math_number" id="~=ob.3?Ql-Y6_yUe7iaw"> <field name="NUM">100</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="n@#i|P]|_UUR8k2vw+zj"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="dndGuV^|3Pqh[r[QjmzW"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="Ot2u2O4*Wa?VBc3}{K)^"> <field name="VAR" id=":deI$b^hsl[$!
iw[6HW">gruen</field>
</block>
</value>
<value name="B">
<block type="math_number" id="]F;Dsa^hc{:(21k|J:C">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id=",Z(U?FOMJ)vq3ED?1]i"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="TCZPlk]wjwzc~ih8Z}z#"> <field name="VAR" id="*7^:Ge!s+aCF+0PQTsFS">rot</field> </block> </value> <value name="B"> <block type="math_number" id="U.BRGMZxq.D3_Z.u4Xl~"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO2"> <block type="math_change" id="Q,Z3(7J/Fiecd[Pr$.xl"> <field name="VAR" id=":deI$b^hsl[$!
iw[6HW">gruen</field>
<value name="DELTA">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="C,ubPK?$b6x8[^8D%H=}">
<field name="NUM">1</field>
</shadow>
<block type="math_number" id="G,p_%!+#Mf8ve7?kw)/a">
<field name="NUM">2</field>
</block>
</value>
</block>
</statement>
<value name="IF3">
<block type="logic_operation" id=",jIBkRX!j{-36j[8UD(!">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id=";Lue(f}z_/j9%KiEPoO.">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="#Y,U#gbxrzmX|eR#-;~v">
<field name="VAR" id="a4e%T%,JW%O(,dRNbR9">Stufe</field>
</block>
</value>
<value name="B">
<block type="math_number" id="Q_6ZpxeMe$}%eB
FUbc">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="k,,o3Rwn.lOc**r5hO8Y">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="Vv0Gfq-46I2N2~aHBw_"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="38t;j9uj^(ij
c~TVZP,">
<field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field>
</block>
</value>
<value name="B">
<block type="math_number" id="HO9Q=[f!e]P0L?[]RdE"> <field name="NUM">100</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="Wp101$Y^PqXi$CO
s1!i">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="XdviJLnLcXGf?v;{lrT:">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="lHzMZJ[rOakM45JFGfk"> <field name="VAR" id=":deI$b^hsl[$!
iw[6HW">gruen</field>
</block>
</value>
<value name="B">
<block type="math_number" id="swXPm:7VI}+gQo|38j0T">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="0]yjv)j}~OO%I!AD:aob">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="+Jm}P?i/ZQK_wMa9jb_">
<field name="VAR" id="7^:Ge!s+aCF+0PQTsFS">rot</field>
</block>
</value>
<value name="B">
<block type="math_number" id="{,7kvb{I@HR_a0?/J2EB">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO3">
<block type="variables_set" id="F,|didpL=4M;D1)DH41E">
<field name="VAR" id="a4e%T%,JW%O(,dRNbR9">Stufe</field>
<value name="VALUE">
<block type="math_number" id="iF@%VC|d9g=,=;PBGT|B">
<field name="NUM">3</field>
</block>
</value>
</block>
</statement>
<value name="IF4">
<block type="logic_operation" id="L9hw%DgpCr!gTmgNFKj">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="LM^/PIbRK5!DNy28S,S"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="!-L;!diB[u?P2_z;p6(Z"> <field name="VAR" id="a4e%T%,JW%O(,dR*NbR9">Stufe</field> </block> </value> <value name="B"> <block type="math_number" id="4vbmp_-C;Z}OmL0V|pQ3"> <field name="NUM">3</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="?NO^aXdEW%f-hTJWyH+o"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="{e(}nll)WD2H
O-$drS"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="IgGRTyC2QU,B*#i{eQM)"> <field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field> </block> </value> <value name="B"> <block type="math_number" id="#yw:XKp_Vy*4u,,AxgyH"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="h.J~!d-$l9EKzdlA$e5i"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="PlOk6^UX]qhhi*@m{Rxt"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="OX2PF|[}qBZ|gej)(mU@"> <field name="VAR" id=":deI$b^hsl[$!
iw[6HW">gruen</field>
</block>
</value>
<value name="B">
<block type="math_number" id="jDhMq1{l3dZL?]7~$253">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="8kGS?Ra_wDy?8ty.V7hp">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="uI{-UVvJa2fsTJpW|Un">
<field name="VAR" id="*7^:Ge!s+aCF+0PQTsFS">rot</field>
</block>
</value>
<value name="B">
<block type="math_number" id="ipj2oeyDTOxvMd4b@tke">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO4">
<block type="math_change" id="+6d_E}N;R@,[=iji^:,">
<field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field>
<value name="DELTA">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="{=.i1_3@J|??!_8h4MN6">
<field name="NUM">-1</field>
</shadow>
<block type="math_number" id="kAufcZo=W~S[z(zvt-I"> <field name="NUM">-2</field> </block> </value> </block> </statement> <value name="IF5"> <block type="logic_operation" id="DuWrqO|c~F5}$m%o|;Un"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="VY
_TWa-BMURRbAz|!9">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="udanyPMna4ENo?yZoYs=">
<field name="VAR" id="a4e%T%,JW%O(,dRNbR9">Stufe</field>
</block>
</value>
<value name="B">
<block type="math_number" id="l]+pL(S8;bKJz[=cka]D">
<field name="NUM">3</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="j{/:|a@|JzTmjSgTpa8o">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="1!2pwEm7A^uQs5]U~3HM">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id=")ynr_MMn1qM8r,F|T7R"> <field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field> </block> </value> <value name="B"> <block type="math_number" id="G9s93a0L+jA}cdFJ4^c)"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="ibApUCRUY0-/Wj+H@5dX"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="3!E.m2;z4PoblJWV]ltM"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="4m*Q7i-ov6h@j_qSUv6@"> <field name="VAR" id=":deI$b^hsl[$!
iw[6HW">gruen</field>
</block>
</value>
<value name="B">
<block type="math_number" id="MxGX$x%]K0}tQX)lF8j">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id=";[z1cO{R}!U6YN6XPI$a">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="D(hs?|YAVwp!NOwZS~v">
<field name="VAR" id="7^:Ge!s+aCF+0PQTsFS">rot</field>
</block>
</value>
<value name="B">
<block type="math_number" id=",z;[-^SQ7#7f7Y=*D+["> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO5"> <block type="variables_set" id="MTi4_bfl7W-KX-g?
,U$">
<field name="VAR" id="a4e%T%,JW%O(,dRNbR9">Stufe</field>
<value name="VALUE">
<block type="math_number" id="6;y#yWkuU;?Xf8kfG,J"> <field name="NUM">4</field> </block> </value> </block> </statement> <value name="IF6"> <block type="logic_operation" id="p?)/Au]#9m40@6O5y4Qx"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="5=_6D9sopf77@G17yaEr"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="hON,(YJ!*N9g5UJf69zH"> <field name="VAR" id="a4e%T%,JW%O(,dR*NbR9">Stufe</field> </block> </value> <value name="B"> <block type="math_number" id="v=%U(_|U^jR?D?V{2@RQ"> <field name="NUM">4</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="4#+@~HgH:=6CRM-,S{t9"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="mQ:9e8,Y|IcojdMla9aj"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="/]jM_J[m{uiLFjQ-Jqlb"> <field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field> </block> </value> <value name="B"> <block type="math_number" id="_:T9HjD18rz9Q^$dooWT"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="sZHHk$rHQVo^ykb]:C-a"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="#Z3i.=MEX.aMqUeBO?!#"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="?y!^uNQ?}u8QqBBY;XvA"> <field name="VAR" id=":deI$b^hsl[$!
iw[6HW">gruen</field>
</block>
</value>
<value name="B">
<block type="math_number" id="?3}ZE~Xsf:4vA0%8(kq">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="u_Q{.GuLm4=|trI{^1oz">
<field name="OP">LT</field>
<value name="A">
<block type="variables_get" id="QQb)tXzYGX:XYVtVgM">
<field name="VAR" id="7^:Ge!s+aCF+0PQTsFS">rot</field>
</block>
</value>
<value name="B">
<block type="math_number" id="!-^Wow%+3Ah_D{MQEAxM">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO6">
<block type="math_change" id="tuOjJy;DKnl?sn{~Xks">
<field name="VAR" id="*7^:Ge!s+aCF+0PQTsFS">rot</field>
<value name="DELTA">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="{=.i1_3@J|??!8h4MN6">
<field name="NUM">-1</field>
</shadow>
<block type="math_number" id="H,|696w,4DS9Y0(/rTrD">
<field name="NUM">2</field>
</block>
</value>
</block>
</statement>
<value name="IF7">
<block type="logic_operation" id="rWMmd?JgqZ:^4j).LDQx">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="{x!%?1QW8H3!C+]!0CgF">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="YfbwVL|eXh(~3gp=f-">
<field name="VAR" id="a4e%T%,JW%O(,dRNbR9">Stufe</field>
</block>
</value>
<value name="B">
<block type="math_number" id="cN:jE[8(V]X7FB,1$O0d">
<field name="NUM">4</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="UvL,EGt)/j85}HVA-x">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="8pSa0Qf#MBh-P2pkuebK">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="vO$[,jG|RHP1biJ:03tZ">
<field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field>
</block>
</value>
<value name="B">
<block type="math_number" id="+.d+Dyg2NC!2i51P$:.">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="Xe,7VRJLgi.2I5o!jxj">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="?OUEoeHMsO}.tG^SOOs"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="2JA1*gyfphQIG:{j}Dj}"> <field name="VAR" id=":deI$b^hsl[$!
iw[6HW">gruen</field>
</block>
</value>
<value name="B">
<block type="math_number" id="i/X!tpm{g22KO}|yaLXJ">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="WHb4va72~gLvWAuMJa6"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="vB3fX~Nl;]HxHVj^RA:
">
<field name="VAR" id="7^:Ge!s+aCF+0PQTsFS">rot</field>
</block>
</value>
<value name="B">
<block type="math_number" id="dTAGqabrVytzLx[k^=dT">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO7">
<block type="variables_set" id="ddY|b6#+6m!9(M4pvh]?">
<field name="VAR" id="a4e%T%,JW%O(,dRNbR9">Stufe</field>
<value name="VALUE">
<block type="math_number" id="K0?^B1DgC)9A6lp/+Oc=">
<field name="NUM">5</field>
</block>
</value>
</block>
</statement>
<value name="IF8">
<block type="logic_operation" id="#r#?[|7:q-$zf,Xtg1"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="dAG,kPqzX_.#jOllSLR_"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="t#TrE6tZh!yzlXK*%7W^"> <field name="VAR" id="a4e%T%,JW%O(,dR*NbR9">Stufe</field> </block> </value> <value name="B"> <block type="math_number" id="eaY=$%.d:S7.V;{*DYIQ"> <field name="NUM">5</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="uKvYCk=qU3;gv#@@V0]H"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="*nhxzXY7_cdnYt$YuQlW"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="$vf6:9$;;-pDUa(Wk46]"> <field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field> </block> </value> <value name="B"> <block type="math_number" id="4}Uuzq[|pSt4(yMwNIw}"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="s23}-6Q6=C%9%
f;0=h]">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="$Jb930TfJ|jjB%^-!:#q">
<field name="OP">GT</field>
<value name="A">
<block type="variables_get" id="1gb!JFx/M[_?dY]3Vi!.">
<field name="VAR" id=":deI$b^hsl[$!iw[6HW">gruen</field> </block> </value> <value name="B"> <block type="math_number" id="1RI[A=yFXYav2]vG[0(I"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="(Lb(bw}tO*)SkzEaV2Yx"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="~0B!2BuO97Jh.}Vh2UN#"> <field name="VAR" id="*7^:Ge!s+aCF+0PQTsFS">rot</field> </block> </value> <value name="B"> <block type="math_number" id="G%:a%h2TF,;KjW)Fx|:$"> <field name="NUM">100</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO8"> <block type="math_change" id="Ve;X|8SKR|cLK(q[;#e#"> <field name="VAR" id=":deI$b^hsl[$!
iw[6HW">gruen</field>
<value name="DELTA">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="{=.i1_3@J|??!_8h4MN6">
<field name="NUM">-1</field>
</shadow>
<block type="math_number" id=":-M5o!%eC0K!5fOZXmW/">
<field name="NUM">-2</field>
</block>
</value>
</block>
</statement>
<value name="IF9">
<block type="logic_operation" id="tR-@8hF$]FFD}XK-VBED">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="k~eIh#7Rxy~Y7k12jslC">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="M%txj8h.gwq)VnUaiI9"> <field name="VAR" id="a4e%T%,JW%O(,dR*NbR9">Stufe</field> </block> </value> <value name="B"> <block type="math_number" id="G.FwAvU%jxQ6No4I(9^;"> <field name="NUM">5</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id=",N3f*uKCSi:-aL__|mR4"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="N/bXWaM:Q4/[|+-MfOnD"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="~?E-;^BBHn
b6hoT1$~8">
<field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field>
</block>
</value>
<value name="B">
<block type="math_number" id="lf#xKZ4:ZNcgH~[RO2OS">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="zP)_pI8/IJd3QpVaV,CG">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="RkiDVZ%oEF|5TDvMECl!">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="sACAC@6fN{vok5CCG0uN">
<field name="VAR" id=":deI$b^hsl[$!iw[6HW">gruen</field> </block> </value> <value name="B"> <block type="math_number" id="/tUGH|6;IrrJfDP8G4Kx"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="$Pjy[FAtd(**L%Kx0[G-"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="~)w1v,|UmyZOqqcH3OJ^"> <field name="VAR" id="*7^:Ge!s+aCF+0PQTsFS">rot</field> </block> </value> <value name="B"> <block type="math_number" id="}6G9KT%gQl%v3
6GP)Ms">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO9">
<block type="variables_set" id=".fk.N?ME.;L|JBw7yYD}">
<field name="VAR" id="a4e%T%,JW%O(,dRNbR9">Stufe</field>
<value name="VALUE">
<block type="math_number" id="yfBGfBsdxhQLXaqVh#|u">
<field name="NUM">6</field>
</block>
</value>
</block>
</statement>
<value name="IF10">
<block type="logic_operation" id="{9p-QPVu0m%GZ5s!X4EB">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="U7YwFTvYL!{uP)nf2-$"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="DYdwk77e2Va,KlpkTk$u"> <field name="VAR" id="a4e%T%,JW%O(,dR*NbR9">Stufe</field> </block> </value> <value name="B"> <block type="math_number" id="0/ts:$X[/4=UZ9c2BH6G"> <field name="NUM">6</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="zApgMlqRL.2Zc#tl6^-J"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="I{$]KL9}qPMn=UAu^uC|"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="nq+l,w,4mX[Qo/1,tDCH"> <field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field> </block> </value> <value name="B"> <block type="math_number" id="5:;1moiZKhw=^H4Mx*^R"> <field name="NUM">100</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="hbZWVpm_X6Thl9-
2:H"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="L2Lt7eQRPfHV(KCQsbA."> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="5j#gP5z/XBPh1SKjmLIM"> <field name="VAR" id=":deI$b^hsl[$!
iw[6HW">gruen</field>
</block>
</value>
<value name="B">
<block type="math_number" id="5IoCsIZ(?vrwc)mT)ED">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="_eq7W3y/zFsW:G/wnn7N">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="?/M[%c[ids4Kj][!48Y;">
<field name="VAR" id="7^:Ge!s+aCF+0PQTsFS">rot</field>
</block>
</value>
<value name="B">
<block type="math_number" id="p%MO8bZwPh!XT73lp4Rp">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO10">
<block type="math_change" id="PHLMbn5gKK{Vn|$[50!">
<field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field>
<value name="DELTA">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="{=.i1_3@J|??!_8h4MN6">
<field name="NUM">-1</field>
</shadow>
<block type="math_number" id="0[EaVY8()/7NQtnM*mG"> <field name="NUM">2</field> </block> </value> </block> </statement> <value name="IF11"> <block type="logic_operation" id="D3Sw7;Us+-](s@(tn_BL"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="{lnQ)}TA([8}jWysS239"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="g0yF1e|P6m-_Ym(O|,bM"> <field name="VAR" id="a4e%T%,JW%O(,dR*NbR9">Stufe</field> </block> </value> <value name="B"> <block type="math_number" id="oIg{hXd}B(p11G:~NW%s"> <field name="NUM">6</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="uvb#E0m7IFd)::fm-wYy"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="ZD4Ed4R^;xYi?ElQamUU"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="RHEKrbOurg+Ujzj-@;H#"> <field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field> </block> </value> <value name="B"> <block type="math_number" id="K;koiqE$1Ag+733Q-Lc;"> <field name="NUM">100</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="MJ]r:1sdv%T*|t/X-%N$"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="OzkgB5
:EpIvbb6,L42D">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="T=m9z^u.p6(ERgzRGX.[">
<field name="VAR" id=":deI$b^hsl[$!iw[6HW">gruen</field> </block> </value> <value name="B"> <block type="math_number" id="^aA=4]CmeJr^Eix$%K^*"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="n]x:c({nj?,PTRLMGR1("> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="U@$bS3oc%QP(5Bq0{@A!"> <field name="VAR" id="*7^:Ge!s+aCF+0PQTsFS">rot</field> </block> </value> <value name="B"> <block type="math_number" id="O|K_[tpJo3BYeChm:=k4"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO11"> <block type="math_change" id="s9E?T0{f!C3.?0X#e5ht"> <field name="VAR" id="*7^:Ge!s+aCF+0PQTsFS">rot</field> <value name="DELTA"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="{=.i1_3@J|??!_8h4MN6"> <field name="NUM">-1</field> </shadow> <block type="math_number" id="gP8hy#b@.B~IJMpz*Qti"> <field name="NUM">-2</field> </block> </value> </block> </statement> <value name="IF12"> <block type="logic_operation" id="Luw;R{Kpb?pV?p~g)K!e"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="O._s~s(A*F$A:mC6:gC9"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="?=dUE^aka%E|3#ptC+c|"> <field name="VAR" id="a4e%T%,JW%O(,dR*NbR9">Stufe</field> </block> </value> <value name="B"> <block type="math_number" id="}r6EgTD*OG+]:G1^y}d:"> <field name="NUM">6</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="h=:G1;l^i!63}@7n%]Z3"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id=":78)orj,GWo@FQbMgYiM"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="Qp/v$:VSs*|!g@
4sY{M">
<field name="VAR" id="mS!6,L2[dj%]kfYUjVa(">blau</field>
</block>
</value>
<value name="B">
<block type="math_number" id="t9p0%U)(wqgZ)4HHvOMV">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="*c@%(VE!sp0HQ!85F+LS">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="I:rbqr[[8,s=?f$Gsde]">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="w.ViQeunIk^f7_h]W^hj">
<field name="VAR" id=":deI$b^hsl[$!iw[6HW">gruen</field> </block> </value> <value name="B"> <block type="math_number" id="#2ia,/B,l)#2KWLf1i2o"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="$[e~7lD;59/D8lg0(!j$"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="gy!;3KJF5#.e^$jVf,dn"> <field name="VAR" id="*7^:Ge!s+aCF+0PQTsFS">rot</field> </block> </value> <value name="B"> <block type="math_number" id="n@Ogobp]RnPuT]bZ~A+="> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO12"> <block type="variables_set" id="X5_hQ*gl8Fv[Lnx1Xtx!"> <field name="VAR" id="a4e%T%,JW%O(,dR*NbR9">Stufe</field> <value name="VALUE"> <block type="math_number" id="p4F4mXSw}TV@(l=HbqI#"> <field name="NUM">2</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </statement> <statement name="ELSE"> <block type="timeouts_clearinterval" id="!{U(;FKq-)k%EJ
y`gB^">
<field name="NAME">zblau</field>
</block>
</statement>
</block>
</statement>
</block>
</xml> -
Hier
https://www.mediaevent.de/javascript/umrechnen.html
steht
Die Umrechnung von Dezimal zu Hexadezimal erfolgt mit var myHex = myNum.toString(16);
Also, das in eine Funktion in Blockly packen, würde ich als Laie sagen.