Actions

Template

Difference between revisions of "ColourPercentBG"

From NEC Retro

Line 49: Line 49:
 
   #vardefine:newvalue|{{#expr:({{#var:colourvalue}}-0.1)*10}}}}|{{
 
   #vardefine:newvalue|{{#expr:({{#var:colourvalue}}-0.1)*10}}}}|{{
  
#ifexpr:{{#var:colourvalue}} > 0.0|{{
+
#ifexpr:{{#var:colourvalue}} >= 0.0|{{
 
   #vardefine:startcolour|{{WikiColour|BG|red}}}}{{
 
   #vardefine:startcolour|{{WikiColour|BG|red}}}}{{
 
   #vardefine:endcolour|{{WikiColour|BG|orange}}}}{{
 
   #vardefine:endcolour|{{WikiColour|BG|orange}}}}{{
Line 61: Line 61:
 
#vardefine:bmax|{{Hex2Dec|{{#sub:{{#var:endcolour}}|4|2}}}}}}{{
 
#vardefine:bmax|{{Hex2Dec|{{#sub:{{#var:endcolour}}|4|2}}}}}}{{
  
#vardefine:rvalue|{{Percent
+
#ifexpr:{{#var:rmin}} > {{#var:rmax}}|{{
|min={{#var:rmin}}
+
  #vardefine:oldmin|{{#var:rmin}}}}{{
|max={{#var:rmax}}
+
  #vardefine:oldmax|{{#var:rmax}}}}{{
|value={{#expr:{{#var:rmin}} + (1-(({{#var:rmax}}-{{#var:rmin}}) * {{#var:newvalue}}))}}
+
  #vardefine:rmin|{{#var:oldmax}}}}{{
}}}}{{
+
  #vardefine:rmax|{{#var:oldmin}}}}|}}{{
#vardefine:gvalue|{{Percent
+
#ifexpr:{{#var:gmin}} > {{#var:gmax}}|{{
|min={{#var:gmin}}
+
  #vardefine:oldmin|{{#var:gmin}}}}{{
|max={{#var:gmax}}
+
  #vardefine:oldmax|{{#var:gmax}}}}{{
|value={{#expr:{{#var:gmin}} + (1-(({{#var:gmax}}-{{#var:gmin}}) * {{#var:newvalue}}))}}
+
  #vardefine:gmin|{{#var:oldmax}}}}{{
}}}}{{
+
  #vardefine:gmax|{{#var:oldmin}}}}|}}{{
#vardefine:bvalue|{{Percent
+
#ifexpr:{{#var:bmin}} > {{#var:bmax}}|{{
|min={{#var:bmin}}
+
  #vardefine:oldmin|{{#var:bmin}}}}{{
|max={{#var:bmax}}
+
  #vardefine:oldmax|{{#var:bmax}}}}{{
|value={{#expr:{{#var:bmin}} + (1-(({{#var:bmax}}-{{#var:bmin}}) * {{#var:newvalue}}))}}
+
  #vardefine:bmin|{{#var:oldmax}}}}{{
}}}}<!--
+
  #vardefine:bmax|{{#var:oldmin}}}}|}}{{
  
*{{#var:rmin}} {{#var:rmax}} {{#var:colourvalue}} {{#var:newvalue}} -> RED {{#var:rvalue}}
+
#vardefine:rvalue|{{#expr:{{#var:rmin}} + (({{#var:rmax}}-{{#var:rmin}}) * {{#var:newvalue}})}}}}{{
*>>{{#expr:{{#var:rmin}} + (({{#var:rmax}}-{{#var:rmin}}) * {{#var:value}})}}
+
#vardefine:gvalue|{{#expr:{{#var:gmin}} + (({{#var:gmax}}-{{#var:gmin}}) * {{#var:newvalue}})}}}}{{
*{{#var:gmin}} {{#var:gmax}} {{#var:colourvalue}} {{#var:newvalue}} -> GREEN {{#var:gvalue}}
+
#vardefine:bvalue|{{#expr:{{#var:bmin}} + (({{#var:bmax}}-{{#var:bmin}}) * {{#var:newvalue}})}}}}rgb({{#expr:{{#var:rvalue}}}}, {{#expr:{{#var:gvalue}}}}, {{#expr:{{#var:bvalue}}}})</includeonly><noinclude>
*>>{{#expr:{{#var:gmin}} + (({{#var:gmax}}-{{#var:gmin}}) * {{#var:value}})}}
 
*{{#var:bmin}} {{#var:bmax}} {{#var:colourvalue}} {{#var:newvalue}} -> BLUE {{#var:bvalue}}
 
*>>{{#expr:{{#var:bmin}} + (({{#var:bmax}}-{{#var:bmin}}) * {{#var:value}})}}
 
 
 
-->rgb({{#expr:abs({{#var:rvalue}}*255)}}, {{#expr:abs({{#var:gvalue}}*255)}}, {{#expr:abs({{#var:bvalue}}*255)}})</includeonly><noinclude>
 
 
{|
 
{|
|style="background-color:{{ColourPercentBG|min=0|max=100|value=5}}"|5
+
|style="background-color:{{ColourPercentBG|min=0|max=100|value=0}}"|0
|style="background-color:{{ColourPercentBG|min=0|max=100|value=15}}"|15
+
|style="background-color:{{ColourPercentBG|min=0|max=100|value=15}}"|10
|style="background-color:{{ColourPercentBG|min=0|max=100|value=25}}"|25
+
|style="background-color:{{ColourPercentBG|min=0|max=100|value=25}}"|20
|style="background-color:{{ColourPercentBG|min=0|max=100|value=35}}"|35
+
|style="background-color:{{ColourPercentBG|min=0|max=100|value=35}}"|30
|style="background-color:{{ColourPercentBG|min=0|max=100|value=45}}"|45
+
|style="background-color:{{ColourPercentBG|min=0|max=100|value=45}}"|40
|style="background-color:{{ColourPercentBG|min=0|max=100|value=55}}"|55
+
|style="background-color:{{ColourPercentBG|min=0|max=100|value=55}}"|50
|style="background-color:{{ColourPercentBG|min=0|max=100|value=65}}"|65
+
|style="background-color:{{ColourPercentBG|min=0|max=100|value=65}}"|60
|style="background-color:{{ColourPercentBG|min=0|max=100|value=75}}"|75
+
|style="background-color:{{ColourPercentBG|min=0|max=100|value=75}}"|70
|style="background-color:{{ColourPercentBG|min=0|max=100|value=85}}"|85
+
|style="background-color:{{ColourPercentBG|min=0|max=100|value=85}}"|80
|style="background-color:{{ColourPercentBG|min=0|max=100|value=95}}"|95
+
|style="background-color:{{ColourPercentBG|min=0|max=100|value=95}}"|90
 +
|style="background-color:{{ColourPercentBG|min=0|max=100|value=100}}"|100
 
|}
 
|}
  
 
{|
 
{|
|style="background-color:{{ColourPercentBG|min=0|max=10|value=1}}"|128KB
+
|style="background-color:{{ColourPercentBG|min=1|max=10|value=1}}"|128KB
|style="background-color:{{ColourPercentBG|min=0|max=10|value=2}}"|256KB
+
|style="background-color:{{ColourPercentBG|min=1|max=10|value=2}}"|256KB
|style="background-color:{{ColourPercentBG|min=0|max=10|value=3}}"|384KB
+
|style="background-color:{{ColourPercentBG|min=1|max=10|value=3}}"|384KB
|style="background-color:{{ColourPercentBG|min=0|max=10|value=4}}"|640KB
+
|style="background-color:{{ColourPercentBG|min=1|max=10|value=4}}"|640KB
|style="background-color:{{ColourPercentBG|min=0|max=10|value=5}}"|1.6MB
+
|style="background-color:{{ColourPercentBG|min=1|max=10|value=5}}"|1.6MB
|style="background-color:{{ColourPercentBG|min=0|max=10|value=6}}"|1.8MB
+
|style="background-color:{{ColourPercentBG|min=1|max=10|value=6}}"|1.8MB
|style="background-color:{{ColourPercentBG|min=0|max=10|value=7}}"|2.0MB
+
|style="background-color:{{ColourPercentBG|min=1|max=10|value=7}}"|2.0MB
|style="background-color:{{ColourPercentBG|min=0|max=10|value=8}}"|3.6MB
+
|style="background-color:{{ColourPercentBG|min=1|max=10|value=8}}"|3.6MB
|style="background-color:{{ColourPercentBG|min=0|max=10|value=9}}"|5.6MB
+
|style="background-color:{{ColourPercentBG|min=1|max=10|value=9}}"|5.6MB
|style="background-color:{{ColourPercentBG|min=0|max=10|value=10}}"|7.6MB
+
|style="background-color:{{ColourPercentBG|min=1|max=10|value=10}}"|7.6MB
 
|}
 
|}
  
Line 126: Line 122:
  
  
*{{ColourPercentBG|min=0|max=100|value=0}}
+
*0 {{ColourPercentBG|min=0|max=100|value=0}}
*{{ColourPercentBG|min=0|max=100|value=5}}
+
*5 {{ColourPercentBG|min=0|max=100|value=5}}
*{{ColourPercentBG|min=0|max=100|value=10}}
+
*10 {{ColourPercentBG|min=0|max=100|value=10}}
*{{ColourPercentBG|min=0|max=100|value=15}}
+
*15 {{ColourPercentBG|min=0|max=100|value=15}}
*{{ColourPercentBG|min=0|max=100|value=20}}
+
*20 {{ColourPercentBG|min=0|max=100|value=20}}
*{{ColourPercentBG|min=0|max=100|value=25}}
+
*25 {{ColourPercentBG|min=0|max=100|value=25}}
*{{ColourPercentBG|min=0|max=100|value=30}}
+
*30 {{ColourPercentBG|min=0|max=100|value=30}}
*{{ColourPercentBG|min=0|max=100|value=35}}
+
*35 {{ColourPercentBG|min=0|max=100|value=35}}
*{{ColourPercentBG|min=0|max=100|value=40}}
+
*40 {{ColourPercentBG|min=0|max=100|value=40}}
*{{ColourPercentBG|min=0|max=100|value=45}}
+
*45 {{ColourPercentBG|min=0|max=100|value=45}}
*{{ColourPercentBG|min=0|max=100|value=50}}
+
*50 {{ColourPercentBG|min=0|max=100|value=50}}
*{{ColourPercentBG|min=0|max=100|value=55}}
+
*55 {{ColourPercentBG|min=0|max=100|value=55}}
*{{ColourPercentBG|min=0|max=100|value=60}}
+
*60 {{ColourPercentBG|min=0|max=100|value=60}}
*{{ColourPercentBG|min=0|max=100|value=65}}
+
*65 {{ColourPercentBG|min=0|max=100|value=65}}
*{{ColourPercentBG|min=0|max=100|value=70}}
+
*70 {{ColourPercentBG|min=0|max=100|value=70}}
*{{ColourPercentBG|min=0|max=100|value=75}}
+
*75 {{ColourPercentBG|min=0|max=100|value=75}}
*{{ColourPercentBG|min=0|max=100|value=80}}
+
*80 {{ColourPercentBG|min=0|max=100|value=80}}
*{{ColourPercentBG|min=0|max=100|value=85}}
+
*85 {{ColourPercentBG|min=0|max=100|value=85}}
*{{ColourPercentBG|min=0|max=100|value=90}}
+
*90 {{ColourPercentBG|min=0|max=100|value=90}}
*{{ColourPercentBG|min=0|max=100|value=95}}
+
*95 {{ColourPercentBG|min=0|max=100|value=95}}
*{{ColourPercentBG|min=0|max=100|value=100}}
+
*100 {{ColourPercentBG|min=0|max=100|value=100}}
 
*{{#var:startcolour}}
 
*{{#var:startcolour}}
 
*{{#var:endcolour}}
 
*{{#var:endcolour}}

Revision as of 09:53, 24 February 2022

0 10 20 30 40 50 60 70 80 90 100
128KB 256KB 384KB 640KB 1.6MB 1.8MB 2.0MB 3.6MB 5.6MB 7.6MB
8086 8086-2 V30 286 386SX 386DX V30HL i486SX i486SX2 i486DX2 Pentium


  • 0 rgb(248, 200, 187)
  • 5 rgb(248, 212, 187)
  • 10 rgb(248, 224, 187)
  • 15 rgb(248, 236, 187)
  • 20 rgb(248, 248, 187)
  • 25 rgb(232, 248, 187)
  • 30 rgb(248, 248, 187)
  • 35 rgb(188, 241, 173.5)
  • 40 rgb(216, 248, 187)
  • 45 rgb(173.5, 234, 204)
  • 50 rgb(187, 234, 248)
  • 55 rgb(187, 219, 251.5)
  • 60 rgb(187, 234, 255)
  • 65 rgb(202, 195.5, 255)
  • 70 rgb(217, 204, 255)
  • 75 rgb(232.5, 187, 251.5)
  • 80 rgb(248, 187, 255)
  • 85 rgb(248, 187, 227.5)
  • 90 rgb(248, 187, 248)
  • 95 rgb(248, 193.5, 197)
  • 100 rgb(248, 200, 207)
  • #F8BBCF;
  • #F8C8BB;

TODO