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}}}}}}{{ | ||
− | # | + | #ifexpr:{{#var:rmin}} > {{#var:rmax}}|{{ |
− | + | #vardefine:oldmin|{{#var:rmin}}}}{{ | |
− | + | #vardefine:oldmax|{{#var:rmax}}}}{{ | |
− | | | + | #vardefine:rmin|{{#var:oldmax}}}}{{ |
− | }}}}{{ | + | #vardefine:rmax|{{#var:oldmin}}}}|}}{{ |
− | # | + | #ifexpr:{{#var:gmin}} > {{#var:gmax}}|{{ |
− | + | #vardefine:oldmin|{{#var:gmin}}}}{{ | |
− | + | #vardefine:oldmax|{{#var:gmax}}}}{{ | |
− | | | + | #vardefine:gmin|{{#var:oldmax}}}}{{ |
− | }}}}{{ | + | #vardefine:gmax|{{#var:oldmin}}}}|}}{{ |
− | # | + | #ifexpr:{{#var:bmin}} > {{#var:bmax}}|{{ |
− | + | #vardefine:oldmin|{{#var:bmin}}}}{{ | |
− | + | #vardefine:oldmax|{{#var:bmax}}}}{{ | |
− | | | + | #vardefine:bmin|{{#var:oldmax}}}}{{ |
− | }}}} | + | #vardefine:bmax|{{#var:oldmin}}}}|}}{{ |
− | + | #vardefine:rvalue|{{#expr:{{#var:rmin}} + (({{#var:rmax}}-{{#var:rmin}}) * {{#var:newvalue}})}}}}{{ | |
− | + | #vardefine:gvalue|{{#expr:{{#var:gmin}} + (({{#var:gmax}}-{{#var:gmin}}) * {{#var:newvalue}})}}}}{{ | |
− | + | #vardefine:bvalue|{{#expr:{{#var:bmin}} + (({{#var:bmax}}-{{#var:bmin}}) * {{#var:newvalue}})}}}}rgb({{#expr:{{#var:rvalue}}}}, {{#expr:{{#var:gvalue}}}}, {{#expr:{{#var:bvalue}}}})</includeonly><noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
{| | {| | ||
− | |style="background-color:{{ColourPercentBG|min=0|max=100|value= | + | |style="background-color:{{ColourPercentBG|min=0|max=100|value=0}}"|0 |
− | |style="background-color:{{ColourPercentBG|min=0|max=100|value=15}}"| | + | |style="background-color:{{ColourPercentBG|min=0|max=100|value=15}}"|10 |
− | |style="background-color:{{ColourPercentBG|min=0|max=100|value=25}}"| | + | |style="background-color:{{ColourPercentBG|min=0|max=100|value=25}}"|20 |
− | |style="background-color:{{ColourPercentBG|min=0|max=100|value=35}}"| | + | |style="background-color:{{ColourPercentBG|min=0|max=100|value=35}}"|30 |
− | |style="background-color:{{ColourPercentBG|min=0|max=100|value=45}}"| | + | |style="background-color:{{ColourPercentBG|min=0|max=100|value=45}}"|40 |
− | |style="background-color:{{ColourPercentBG|min=0|max=100|value=55}}"| | + | |style="background-color:{{ColourPercentBG|min=0|max=100|value=55}}"|50 |
− | |style="background-color:{{ColourPercentBG|min=0|max=100|value=65}}"| | + | |style="background-color:{{ColourPercentBG|min=0|max=100|value=65}}"|60 |
− | |style="background-color:{{ColourPercentBG|min=0|max=100|value=75}}"| | + | |style="background-color:{{ColourPercentBG|min=0|max=100|value=75}}"|70 |
− | |style="background-color:{{ColourPercentBG|min=0|max=100|value=85}}"| | + | |style="background-color:{{ColourPercentBG|min=0|max=100|value=85}}"|80 |
− | |style="background-color:{{ColourPercentBG|min=0|max=100|value=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= | + | |style="background-color:{{ColourPercentBG|min=1|max=10|value=1}}"|128KB |
− | |style="background-color:{{ColourPercentBG|min= | + | |style="background-color:{{ColourPercentBG|min=1|max=10|value=2}}"|256KB |
− | |style="background-color:{{ColourPercentBG|min= | + | |style="background-color:{{ColourPercentBG|min=1|max=10|value=3}}"|384KB |
− | |style="background-color:{{ColourPercentBG|min= | + | |style="background-color:{{ColourPercentBG|min=1|max=10|value=4}}"|640KB |
− | |style="background-color:{{ColourPercentBG|min= | + | |style="background-color:{{ColourPercentBG|min=1|max=10|value=5}}"|1.6MB |
− | |style="background-color:{{ColourPercentBG|min= | + | |style="background-color:{{ColourPercentBG|min=1|max=10|value=6}}"|1.8MB |
− | |style="background-color:{{ColourPercentBG|min= | + | |style="background-color:{{ColourPercentBG|min=1|max=10|value=7}}"|2.0MB |
− | |style="background-color:{{ColourPercentBG|min= | + | |style="background-color:{{ColourPercentBG|min=1|max=10|value=8}}"|3.6MB |
− | |style="background-color:{{ColourPercentBG|min= | + | |style="background-color:{{ColourPercentBG|min=1|max=10|value=9}}"|5.6MB |
− | |style="background-color:{{ColourPercentBG|min= | + | |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