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
€46.73
List Price:  €65.43
You save:  €18.69
£39.55
List Price:  £55.38
You save:  £15.82
CA$68.39
List Price:  CA$95.75
You save:  CA$27.36
A$76.50
List Price:  A$107.11
You save:  A$30.60
S$68.11
List Price:  S$95.36
You save:  S$27.25
HK$391.33
List Price:  HK$547.90
You save:  HK$156.56
CHF 45.19
List Price:  CHF 63.27
You save:  CHF 18.08
NOK kr551.82
List Price:  NOK kr772.60
You save:  NOK kr220.77
DKK kr348.47
List Price:  DKK kr487.88
You save:  DKK kr139.41
NZ$84.17
List Price:  NZ$117.84
You save:  NZ$33.67
د.إ183.60
List Price:  د.إ257.06
You save:  د.إ73.45
৳5,499.99
List Price:  ৳7,700.43
You save:  ৳2,200.43
₹4,169.28
List Price:  ₹5,837.33
You save:  ₹1,668.04
RM238.32
List Price:  RM333.67
You save:  RM95.35
₦66,060.50
List Price:  ₦92,489.99
You save:  ₦26,429.48
₨13,951.51
List Price:  ₨19,533.24
You save:  ₨5,581.72
฿1,848.80
List Price:  ฿2,588.46
You save:  ฿739.66
₺1,625.07
List Price:  ₺2,275.23
You save:  ₺650.15
B$255.76
List Price:  B$358.08
You save:  B$102.32
R938.81
List Price:  R1,314.42
You save:  R375.60
Лв91.38
List Price:  Лв127.95
You save:  Лв36.56
₩68,890.62
List Price:  ₩96,452.39
You save:  ₩27,561.76
₪190.87
List Price:  ₪267.23
You save:  ₪76.36
₱2,881.72
List Price:  ₱4,034.64
You save:  ₱1,152.92
¥7,903.16
List Price:  ¥11,065.06
You save:  ¥3,161.90
MX$857.83
List Price:  MX$1,201.03
You save:  MX$343.20
QR182.72
List Price:  QR255.83
You save:  QR73.10
P689.81
List Price:  P965.79
You save:  P275.98
KSh6,639.79
List Price:  KSh9,296.24
You save:  KSh2,656.45
E£2,392.59
List Price:  E£3,349.82
You save:  E£957.23
ብር2,876.01
List Price:  ብር4,026.64
You save:  ብር1,150.63
Kz41,694.65
List Price:  Kz58,375.85
You save:  Kz16,681.20
CLP$47,588.94
List Price:  CLP$66,628.33
You save:  CLP$19,039.38
CN¥362.20
List Price:  CN¥507.11
You save:  CN¥144.91
RD$2,937.78
List Price:  RD$4,113.13
You save:  RD$1,175.34
DA6,709.29
List Price:  DA9,393.54
You save:  DA2,684.25
FJ$113.10
List Price:  FJ$158.35
You save:  FJ$45.25
Q389.77
List Price:  Q545.71
You save:  Q155.94
GY$10,484.28
List Price:  GY$14,678.83
You save:  GY$4,194.55
ISK kr7,005.56
List Price:  ISK kr9,808.34
You save:  ISK kr2,802.78
DH506.20
List Price:  DH708.72
You save:  DH202.52
L888.32
List Price:  L1,243.72
You save:  L355.39
ден2,874.95
List Price:  ден4,025.16
You save:  ден1,150.21
MOP$404.09
List Price:  MOP$565.76
You save:  MOP$161.67
N$945.52
List Price:  N$1,323.80
You save:  N$378.28
C$1,844.23
List Price:  C$2,582.07
You save:  C$737.84
रु6,681.04
List Price:  रु9,353.99
You save:  रु2,672.95
S/188.25
List Price:  S/263.57
You save:  S/75.31
K193.43
List Price:  K270.82
You save:  K77.39
SAR187.48
List Price:  SAR262.49
You save:  SAR75
ZK1,328
List Price:  ZK1,859.31
You save:  ZK531.30
L232.80
List Price:  L325.94
You save:  L93.14
Kč1,174.50
List Price:  Kč1,644.39
You save:  Kč469.89
Ft18,330.20
List Price:  Ft25,663.75
You save:  Ft7,333.54
SEK kr544.35
List Price:  SEK kr762.14
You save:  SEK kr217.78
ARS$43,786.41
List Price:  ARS$61,304.48
You save:  ARS$17,518.06
Bs347.54
List Price:  Bs486.59
You save:  Bs139.04
COP$198,222.27
List Price:  COP$277,527.04
You save:  COP$79,304.77
₡25,463.28
List Price:  ₡35,650.64
You save:  ₡10,187.35
L1,237.47
List Price:  L1,732.56
You save:  L495.08
₲373,144.52
List Price:  ₲522,432.19
You save:  ₲149,287.66
$U1,931.55
List Price:  $U2,704.33
You save:  $U772.77
zł201.47
List Price:  zł282.07
You save:  zł80.60
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.