HSLA xim yog dab tsi?
HSLA xim yog dab tsi?

Video: HSLA xim yog dab tsi?

Video: HSLA xim yog dab tsi?
Video: qhia kho kom tus neeg yuag hauv premiere pro tshaeej yim muas 2024, Kaum ib hlis
Anonim

HSLA sawv rau Hue, Saturation, Lightness, andalpha. Qhov no HSLa Xim Txoj kev muaj nuj nqis yog ntau intuitive dua RGBA lossis Hex qhov tseem ceeb, tso cai rau koj siv cov xim wheelto xaiv lub xim.

Tsis tas li, HSLA yog dab tsi hauv CSS?

CSS hsla () Function Cov hsla () muaj nuj nqi txhais cov xim uas siv lubHue-saturation-lightness-alpha qauv ( HSLA ). HSLA xim qhov tseem ceeb yog qhov txuas ntxiv ntawm HSL xim qhov tseem ceeb nrog alphachannel - uas qhia meej qhov opacity ntawm cov xim.

Qhov thib ob, qhov txawv ntawm RGBA thiab HSLA yog dab tsi? HSLA sawv rau Hue Saturation Lightness alpha. HSLa me ntsis zoo li RGBA , tsuas yog thawj tus nqi rau peb Hue-lossis xim. AT 100% saturation yog tag nrho txoj kev thiab peb tab tom saib cov xim tag nrho. Lightness kuj qhia raws li feem pua thiab piav qhia ntau npaum li cas peb muaj xim dub lossis dawb hauv a xim.

Tom qab ntawd, dab tsi yog A hauv RGBA xim?

RGBA xim Qhov tseem ceeb yog qhov txuas ntxiv ntawm RGB xim muaj nuj nqis nrog ib qho alpha channel - uas qhia txog theopacity rau a xim . Ib RGBA xim tus nqi yog teev nrog: rgba ua (liab, ntsuab, xiav, alpha). alpha parameter isa tus naj npawb ntawm 0.0 (tag nrho pob tshab) thiab 1.0 (fullyopaque).

Cov xim dab tsi muaj nyob hauv CSS?

CSS Xim Lub Npe

Xim lub npe Hex Code RGB Decimal Code RGB
Orchid Txa70D 6 218, 112, 214
Fuchsia FF00 IB 255, 0, 255
Magenta FF00 IB 255, 0, 255
MediumOrchid BA55D 3 186, 85, 211

Pom zoo: