| r2935 vs r2936 | ||
|---|---|---|
| 1 | 1 | [[분류:냥]] |
| 2 | {{{#!if a = 1 | |
| 3 | }}} | |
| 4 | || asdf || | |
| 5 | ||<rowif= a = 1; true > a = 1; true || | |
| 6 | ||<rowif= a == 2> a == 2 || | |
| 7 | ||<rowif= a == 1> a == 1 || | |
| 8 | ||<rowif= a < 2 > a < 2 || | |
| 9 | ||<rowif= a > 0 > a > 0 || | |
| 10 | ||<rowif= a \> 0 > a \\> 0 || | |
| 11 | ||<rowif= a \\> 0 > a \\> 0 || | |
| 2 | 12 | |
| 13 | ||<rowif= a=2> a=2 || | |
| 14 | ||
| 15 | ||<rowif= code='#123456';code=this.code;code=code.trim();valid=code.startsWith("#")&&(code.length==4||code.length==7);c1=code.substring(1,2);c2=code.substring(2,3);c3=code.substring(3,4);c4=code.substring(4,5);c5=code.substring(5,6);c6=code.substring(6,7);r_hex=code.length==4?c1+c1:c1+c2;g_hex=code.length==4?c2+c2:c3+c4;b_hex=code.length==4?c3+c3:c5+c6;r=parseInt(r_hex,16);g=parseInt(g_hex,16);b=parseInt(b_hex,16);f=r+g+b+0.0;rr=r/255.0+0.0;gg=g/255.0+0.0;bb=b/255.0+0.0;lin_r=rr<=0.04045?rr/12.92+0.0:((rr+0.055)/1.055+0.0)**2.4;lin_g=gg<=0.04045?gg/12.92+0.0:((gg+0.055)/1.055+0.0)**2.4;lin_b=bb<=0.04045?bb/12.92+0.0:((bb+0.055)/1.055+0.0)**2.4;x65=lin_r*0.4124+lin_g*0.3576+lin_b*0.1805+0.0;y65=lin_r*0.2126+lin_g*0.7152+lin_b*0.0722+0.0;z65=lin_r*0.0193+lin_g*0.1192+lin_b*0.9505+0.0;x_d50=x65*1.047996+y65*0.022968+z65*(-0.050954)+0.0;y_d50=x65*0.029747+y65*0.990434+z65*0.015043+0.0;z_d50=x65*(-0.009222)+y65*0.015055+z65*0.752132+0.0;valid> 입력 hex: @code@ | |
| 16 | ||
| 17 | sRGB: (@r@, @g@, @b@) | |
| 18 | ||
| 19 | linear RGB: (@lin_r@, @lin_g@, @lin_b@) | |
| 20 | ||
| 21 | XYZ D65 (0~1): X=@x65@ Y=@y65@ Z=@z65@ {{{#!wiki style="background: color(xyz-d65 @x65@ @y65@ @z65@); width: 1em; height: 1em; display: inline-table; vertical-align: -2px; border: 1px black solid" dark-style="border: 1px white solid" | |
| 22 | }}} | |
| 23 | ||
| 24 | XYZ D50 (Bradford 적응 후, 0~1): X=@x_d50@ Y=@y_d50@ Z=@z_d50@ {{{#!wiki style="background: color(xyz-d50 @x_d50@ @y_d50@ @z_d50@); width: 1em; height: 1em; display: inline-table; vertical-align: -2px; border: 1px black solid" dark-style="border: 1px white solid" | |
| 25 | }}} || | |
| 26 | ||
| 27 | rowif에서 > 못쓰나 | |
| 28 | < 로 바꿔 써야겠네 | |
| 29 | ||
| 3 | 30 | [tableofcontents(hide)] |
| 4 | 31 | -> [[bad apple]] |
| 5 | 32 | {{{#!style |
| ... | ... |