hsv to rgb

This commit is contained in:
Victor Giers
2019-06-08 00:31:33 +02:00
parent bab542621b
commit 3d2366f11a
6 changed files with 343 additions and 107 deletions

View File

@@ -1,5 +1,5 @@
<xml xmlns="http://www.w3.org/1999/xhtml">
<tab name="Init" type="InitTab" active="false" scrollx="326.8509198386643" scrolly="291.0316409522357" scale="0.7462349768006044">
<tab name="Init" type="InitTab" active="false" scrollx="326.8509198386647" scrolly="291.0316409522357" scale="0.7462349768006044">
<variables>
<variable type="" id="U?SMwCJdbQuF-Xah3ja#">ctrlInit</variable>
<variable type="" id=";D?T^;K0%2HHlr__^(^G">cinitx</variable>
@@ -116,10 +116,12 @@
</next>
</block>
</tab>
<tab name="Main" type="MainTab" active="true" scrollx="232.04986572265625" scrolly="254.50326538085938" scale="0.5226292566934678">
<tab name="Main" type="MainTab" active="true" scrollx="102.93374633789062" scrolly="7.967080593109017" scale="0.7211790326162258">
<variables>
<variable type="" id="JjHAX,fgz)6.fPl8`pav">distZ</variable>
<variable type="" id="APc5)WJ[Hf2IW+7hrxsN">light</variable>
<variable type="" id="OZm(1S+UK~jxq[i=;gvy">r</variable>
<variable type="" id="3;f(l#V],jaRVr+m[?9;">g</variable>
<variable type="" id="~hN.qKKnh]5^GXCD=Ln5">b</variable>
<variable type="" id="GKERIN}`~rk0$MWnY3aS">stepY</variable>
<variable type="" id="vpri#?vQ7`ZyX.tU55{Z">distY</variable>
<variable type="" id="vG99U|`lU,3SOsjwD]~h">dragging</variable>
@@ -322,9 +324,6 @@
</block>
</statement>
</block>
<block type="variables_get" id="H4]N(O5pLY;L0jVF{}NC" x="-670" y="-250">
<field name="VAR" id="APc5)WJ[Hf2IW+7hrxsN" variabletype="">light</field>
</block>
<block type="whenDraggedOver" id="x7;j`9Tr6$fIW]tXfLwm" x="-230" y="-230">
<mutation do_start="true" do_drop="true"></mutation>
<value name="VALUE">
@@ -700,39 +699,28 @@
</block>
</value>
<next>
<block type="console.log" id="CSz~#m-=cKJ+IThK8A1T">
<value name="VALUE">
<shadow type="text" id="a]UNhQ)g?NDLjQ9L~ZBN">
<field name="TEXT">I'm here!!!</field>
</shadow>
<block type="callJSFunction" id="Ht=-UqmBfQXS$VYiv9;5">
<mutation name="HSVtoRGB">
<arg name="h"></arg>
<arg name="s"></arg>
<arg name="v"></arg>
</mutation>
<field name="NAME">HSVtoRGB</field>
<value name="ARG0">
<block type="variables_get" id="$3OIc0O#E7j~cJ,R`-?e">
<field name="VAR" id="S`ib|8a9}oYR22qe`UUI" variabletype="">hue</field>
</block>
</value>
<next>
<block type="console.log" id="upJ:FgyxTuO(6`0:FHlM">
<value name="VALUE">
<shadow type="text" id="a]UNhQ)g?NDLjQ9L~ZBN">
<field name="TEXT">I'm here!!!</field>
</shadow>
<block type="variables_get" id="fmN^BQWJ}iRc265bH#RM">
<field name="VAR" id="YfcA/U/M4Db,!/u8lx*r" variabletype="">sat</field>
</block>
</value>
<next>
<block type="console.log" id="A1s~7jbj`yz@j/+Q$2RU">
<value name="VALUE">
<shadow type="text" id="a]UNhQ)g?NDLjQ9L~ZBN">
<field name="TEXT">I'm here!!!</field>
</shadow>
<block type="variables_get" id="B=0NOM]eM`n,Ws`rlPbn">
<field name="VAR" id="rAlwiT?%pA#CG+i+x-1G" variabletype="">value</field>
</block>
</value>
</block>
</next>
<value name="ARG1">
<block type="variables_get" id="fmN^BQWJ}iRc265bH#RM">
<field name="VAR" id="YfcA/U/M4Db,!/u8lx*r" variabletype="">sat</field>
</block>
</next>
</value>
<value name="ARG2">
<block type="variables_get" id="B=0NOM]eM`n,Ws`rlPbn">
<field name="VAR" id="rAlwiT?%pA#CG+i+x-1G" variabletype="">value</field>
</block>
</value>
</block>
</next>
</block>
@@ -762,6 +750,84 @@
</block>
</statement>
</block>
<block type="externalCall" id="Vpc9v!mZHQ0;V(+:ON#u" x="-150" y="430">
<mutation>
<arg name="r" varid="OZm(1S+UK~jxq[i=;gvy"></arg>
<arg name="g" varid="3;f(l#V],jaRVr+m[?9;"></arg>
<arg name="b" varid="~hN.qKKnh]5^GXCD=Ln5"></arg>
</mutation>
<field name="NAME">setRGB</field>
<statement name="STACK">
<block type="setMaterialColor" id="|eRH_j=aRD}WiOkXzv}i">
<field name="MAT_COL_NAME">Principled BSDF Color</field>
<value name="MATERIAL">
<block type="materialList" id="RK`ToB})CECw8{IJ*7xU">
<field name="FIELDNAME">transparent</field>
</block>
</value>
<value name="R">
<shadow type="math_number" id="uMTNnOn`F[3nF/|A_FRa">
<field name="NUM">0.5</field>
</shadow>
<block type="variables_get" id="EhrBCPmUJ|?8?5%MWD|i">
<field name="VAR" id="OZm(1S+UK~jxq[i=;gvy" variabletype="">r</field>
</block>
</value>
<value name="G">
<shadow type="math_number" id="VfDW%w^e94)Xh9HL:@XN">
<field name="NUM">0.5</field>
</shadow>
<block type="variables_get" id="N:6Uy_BVf#OVcig)AwX:">
<field name="VAR" id="3;f(l#V],jaRVr+m[?9;" variabletype="">g</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="9n(`|;7_R}POn4hpJ-f7">
<field name="NUM">0.5</field>
</shadow>
<block type="variables_get" id="?Wd^ql:F{H_D.,}@(Yy~">
<field name="VAR" id="~hN.qKKnh]5^GXCD=Ln5" variabletype="">b</field>
</block>
</value>
</block>
</statement>
</block>
<block type="bloom" id="^pL/J.Y%ueuCO%}B=ezi" x="-270" y="510">
<value name="THRESHOLD">
<shadow type="math_number" id="S@oN@`tJye!`*)7Zy5[t">
<field name="NUM">0.5</field>
</shadow>
</value>
<value name="STRENGTH">
<shadow type="math_number" id="d8cSN{Dk`y3(fSC9MYZw">
<field name="NUM">0.2</field>
</shadow>
</value>
<value name="RADIUS">
<shadow type="math_number" id="].|hcK5O#zQt/ct[zjFu">
<field name="NUM">0.15</field>
</shadow>
</value>
<next>
<block type="ssao" id="~*s;Bv.,8e9lnec_53cA">
<value name="RADIUS">
<shadow type="math_number" id="$(Oy{xY[,33N8Md?1IMo">
<field name="NUM">2</field>
</shadow>
</value>
<value name="AO_CLAMP">
<shadow type="math_number" id="[4s+GMZ3J0/ev7LINj6k">
<field name="NUM">0.25</field>
</shadow>
</value>
<value name="LUM_INFLUENCE">
<shadow type="math_number" id="6aPQ:c6{M?|=/F-E~Gis">
<field name="NUM">0.7</field>
</shadow>
</value>
</block>
</next>
</block>
<block type="eventHTMLElem" id="fTN5K]$,(lHQ5YaPZx[f" x="-210" y="610">
<field name="EVENT">wheel</field>
<field name="PARENT">FALSE</field>
@@ -1129,5 +1195,5 @@
<field name="VAR" id="GKERIN}`~rk0$MWnY3aS" variabletype="">stepY</field>
</block>
</tab>
<editorsettings width="1087" height="614"></editorsettings>
<editorsettings width="918" height="396"></editorsettings>
</xml>