RGB

๐Ÿ“š ์ง€์‹ ์ฑ„์šฐ๊ธฐ/์›น (ํ”„๋ก ํŠธ์—”๋“œ, ๋ฐฑ์—”๋“œ)

[HTML&CSS] Colors , Variables

[HTML&CSS] Colors , Variables ( UPDATE 2023 - 05 - 30 ) Colors ์ƒ‰์ƒ ์ฒด๊ณ„ (color system) 1) hexadecimal color (16์ง„์ˆ˜ ์ปฌ๋Ÿฌ) #2ecc71์™€ ๊ฐ™์€ ์ƒ‰์ƒ ์ฝ”๋“œ 2) rgb (๋””์ž์ด๋„ˆ๋“ค์ด ๋งŽ์ด ์”€) ๊ฐ๊ฐ red, green, blue๋ฅผ ์˜๋ฏธ. rgb(0,140,200)์˜ ๊ฒฝ์šฐ์—” red ๊ฐ’์ด 0, green ๊ฐ’์ด 140, blue ๊ฐ’์ด 200์ด๋ผ๊ณ  ์ดํ•ดํ•  ์ˆ˜ ์žˆ๋‹ค. 3) rgba rgb์™€ ๋™์ผํ•˜์ง€๋งŒ a๊ฐ€ ํฌํ•จ๋œ ํ˜•ํƒœ. 'a(alpha)'๋Š” ํˆฌ๋ช…๋„๋ฅผ ์˜๋ฏธ 0(ํˆฌ๋ช…)~1(๋ถˆํˆฌ๋ช…) ์‚ฌ์ด์˜ ๊ฐ’์œผ๋กœ ์กฐ์ ˆํ•  ์ˆ˜ ์žˆ๋‹ค. Variables (=custom property) variables (=custom property) css๋ฅผ ํ”„๋กœ๊ทธ๋ž˜๋ฐ์–ธ..

์–‘์ฝฉ(Yangkong)
'RGB' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก