Saturate Filter

4 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€47.52
List Price:  €66.54
You save:  €19.01
£39.70
List Price:  £55.59
You save:  £15.88
CA$70.43
List Price:  CA$98.62
You save:  CA$28.18
A$76.97
List Price:  A$107.77
You save:  A$30.79
S$67.31
List Price:  S$94.24
You save:  S$26.93
HK$389.04
List Price:  HK$544.69
You save:  HK$155.65
CHF 44.26
List Price:  CHF 61.97
You save:  CHF 17.70
NOK kr555.31
List Price:  NOK kr777.48
You save:  NOK kr222.17
DKK kr354.52
List Price:  DKK kr496.36
You save:  DKK kr141.83
NZ$85.39
List Price:  NZ$119.56
You save:  NZ$34.16
د.إ183.61
List Price:  د.إ257.07
You save:  د.إ73.46
৳5,974.85
List Price:  ৳8,365.27
You save:  ৳2,390.42
₹4,214.36
List Price:  ₹5,900.44
You save:  ₹1,686.08
RM223.20
List Price:  RM312.50
You save:  RM89.30
₦84,139.66
List Price:  ₦117,802.26
You save:  ₦33,662.60
₨13,894.72
List Price:  ₨19,453.72
You save:  ₨5,559
฿1,731.75
List Price:  ฿2,424.59
You save:  ฿692.84
₺1,731.89
List Price:  ₺2,424.79
You save:  ₺692.89
B$291.02
List Price:  B$407.45
You save:  B$116.43
R904.37
List Price:  R1,266.19
You save:  R361.82
Лв93.24
List Price:  Лв130.55
You save:  Лв37.30
₩69,838.35
List Price:  ₩97,779.29
You save:  ₩27,940.93
₪182.45
List Price:  ₪255.44
You save:  ₪72.99
₱2,948.07
List Price:  ₱4,127.53
You save:  ₱1,179.46
¥7,686.27
List Price:  ¥10,761.39
You save:  ¥3,075.12
MX$1,026.34
List Price:  MX$1,436.97
You save:  MX$410.62
QR181.99
List Price:  QR254.80
You save:  QR72.81
P683.05
List Price:  P956.33
You save:  P273.27
KSh6,473.70
List Price:  KSh9,063.70
You save:  KSh2,590
E£2,479.91
List Price:  E£3,472.08
You save:  E£992.16
ብር6,171.26
List Price:  ብር8,640.26
You save:  ብር2,469
Kz45,640.87
List Price:  Kz63,900.87
You save:  Kz18,260
CLP$48,800.23
List Price:  CLP$68,324.23
You save:  CLP$19,524
CN¥362.21
List Price:  CN¥507.13
You save:  CN¥144.91
RD$3,019.39
List Price:  RD$4,227.39
You save:  RD$1,208
DA6,681.78
List Price:  DA9,355.03
You save:  DA2,673.24
FJ$114.89
List Price:  FJ$160.86
You save:  FJ$45.96
Q386.07
List Price:  Q540.54
You save:  Q154.46
GY$10,461.05
List Price:  GY$14,646.31
You save:  GY$4,185.25
ISK kr6,897.62
List Price:  ISK kr9,657.22
You save:  ISK kr2,759.60
DH501.57
List Price:  DH702.24
You save:  DH200.67
L910.90
List Price:  L1,275.33
You save:  L364.43
ден2,944.65
List Price:  ден4,122.75
You save:  ден1,178.09
MOP$400.69
List Price:  MOP$561
You save:  MOP$160.31
N$901.81
List Price:  N$1,262.61
You save:  N$360.80
C$1,837.63
List Price:  C$2,572.83
You save:  C$735.20
रु6,744.61
List Price:  रु9,443
You save:  रु2,698.38
S/189.86
List Price:  S/265.82
You save:  S/75.96
K201.24
List Price:  K281.76
You save:  K80.51
SAR187.73
List Price:  SAR262.83
You save:  SAR75.10
ZK1,378.75
List Price:  ZK1,930.37
You save:  ZK551.61
L236.54
List Price:  L331.18
You save:  L94.63
Kč1,201.96
List Price:  Kč1,682.84
You save:  Kč480.88
Ft19,552.70
List Price:  Ft27,375.34
You save:  Ft7,822.64
SEK kr547.88
List Price:  SEK kr767.08
You save:  SEK kr219.19
ARS$50,310.58
List Price:  ARS$70,438.83
You save:  ARS$20,128.25
Bs346.77
List Price:  Bs485.51
You save:  Bs138.73
COP$219,940.74
List Price:  COP$307,934.64
You save:  COP$87,993.89
₡25,482.47
List Price:  ₡35,677.50
You save:  ₡10,195.02
L1,260.99
List Price:  L1,765.49
You save:  L504.50
₲389,563.28
List Price:  ₲545,419.77
You save:  ₲155,856.48
$U2,130.69
List Price:  $U2,983.14
You save:  $U852.45
zł205.15
List Price:  zł287.23
You save:  zł82.07
Already have an account? Log In

Transcript

So in this movie, we're going to talk about saturate function in CSS image filters, which allows you to saturate the image. So here's a demo, this is the original image, which have 100% saturation and 100% is a default value of this saturate function. But what happens if you go below hundred percent? Well, in that case, you will go into D saturate that image in this case, this image, this image has a 50% saturation which resulted in a D saturated image. If you go Judo percent, it will completely be saturated. But what happens if you go beyond 100% or over 100%?

Well, you are going to Super saturate the image and this is the demo of it. So this have a 200% saturation. Obviously, we will dig deep into coding in a bit, but first, let me tell you that what kind of value as a parameter, the saturate function except, so here is the saturate function and you can pass number or percentage value As a parameter in this saturate function, so now let me just go to my quatre where I'll show you the saturate function in action. So here we go, I'm on my equator. And we are going to work on these last two images, which is image two and Ms three. So let's go to filter here.

And let's target our image two. And here we're going to use this filter property. And in this case, we're going to make use of this saturate function. Well, what happens if I don't pass any value in this saturate function? Well, if I just do that, and if I go here, you see this image is remain unchanged. Why is that?

Well, because by default, the value of this saturate function is hundred percent, and 100% means original image, because only original images have 100% saturation. So let me just prove you that so our target is image three. And here I'm also gonna just grab this picture, and then saturate function. And here I'm gonna pass hundred percent. And now if I save it, if I go here, you will not see any difference in the second or third image. So hundred percent.

Means the original image. So now what happens if you go below 100%? Well you're going to desaturate the image let me show you if I say here 50% then if I go here and you will see that now this is the saturated even if I go lower than that let's say I want this my tardiness to be have a zero percent saturation. If I go here, you see, it's now turning to complete gray and this is fully unsaturated image. So this image do not have any saturation. So this is zero percent, this is 50%.

And this is the hundred percent which is the origin. So this is what's going to happen if you go below hundred percent, but what happens if you go above hundred percent? Well in that case, you will go into super saturate or ultra saturate these color, let me show you. So if I see 150% which is higher than hundred percent, so let me just go here and you see now you have supersaturated result. Obviously you can go crazy or you can see some like a full 100 or 500. So let me just say 500.

And if I go here, you see this is ultra super saturated, right? Obviously, you do not want that kind of saturation. But that's great for demo, right? So let's make it 200, which is a little bit really elastic. If I go here, well, we can definitely want these kind of situations. Okay, so now these are two kind of values, you can pass as a parameter in this separate function.

The first one is the percent and the second one is the number or you can say decimal number. So now I'm passing this 50% as a percent, but if I want that exact 50% as a number, well I can use your 0.5 so now it's represented 50% It's a decimal number. And now if I go here, you will not see any difference in second and third images, you see, they look exactly same, because we have past exactly the same value, but as a different kind of value. In this case, this is a person and this is number. So if you want to hundred percent situation where it is PC two, and this is going to be 200%. Okay?

And now these both values are same. If I go here, second and 30 minutes look exactly the same. So you can pass to kind of value as a parameter. The first one is a decimal number and the second one is the percent, okay? Now here's the most important thing, saturate function do not accept any negative parameter. So if I see hundred minus two, well, it will not work.

If I go here, you see, it's not working. Now it's back to its original saturation, which is 100%. Okay, so remember, do not pass any negative value because negative value don't work here. So yeah, this is all about saturate function. This is how you can saturate your image using saturate function in senses image filters.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.