পৃষ্ঠাসমূহ

Search Your Article

CS

 

Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.

At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.

What We Offer:

  • 📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.

  • 💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.

  • 🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.

  • 🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.

    Latest world News 

     

Our Vision

To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.

Why Choose Us?

✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing

We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.

📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.

Pageviews

Friday, March 3, 2017

Less - Color Channel Functions

Less supports few build-in functions which set value about a channel. The channel set the value depending on the color definition. The HSL colors have hue, saturation and lightness channel and the RGB color have red, green and blue channel. Following are the list of color channel function:

S.N. Function & Description Example
1 hue
In HSL color space, the hue channel is extracted of the color object.
 background: hue(hsl(75, 90%, 30%));
it compiles in the CSS as shown below :
background: 75;
2 saturation
In HSL color space, the saturation channel is extracted of the color object.
background: saturation(hsl(75, 90%, 30%));
It compiles in the CSS as shown below:
background: 90%;
3 lightness
In HSL color space, the lightness channel is extracted of the color object.
  background: lightness(hsl(75, 90%, 30%));
It compiles in the CSS as shown below:
background: 30%;
4 hsvhue
In HSV color space, the hue channel is extracted of the color object.
background: hsvhue(hsv(75, 90%, 30%));
It compiles in the CSS as shown below:
background: 75;
5 hsvsaturation
In HSL color space, the saturation channel is extracted of the color object.
background: hsvsaturation(hsv(75, 90%, 30%));
It compiles in the CSS as shown below:
background: 90%;
6 hsvvalue
In HSL color space, the value channel is extracted of the color object.
background: hsvvalue(hsv(75, 90%, 30%));
It compiles in the CSS as shown below:
background: 30%;
7 red
The red channel is extracted of the color object.
background: red(rgb(5, 15, 25));
It compiles in the CSS as shown below:
background: 5;
8 green
The green channel is extracted of the color object.
background: green(rgb(5, 15, 25));
It compiles in the CSS as shown below:
background: 15;
9 blue
The blue channel is extracted of the color object.
background: blue(rgb(5, 15, 25));
It compiles in the CSS as shown below:
background: 25;
10 alpha
The alpha channel is extracted of the color object.
background: alpha(rgba(5, 15, 25, 1.5));
It compiles in the CSS as shown below:
background: 2;
11 luma
luma value is calculated of a color object.
background: luma(rgb(50, 250, 150));
It compiles in the CSS as shown below:
background: 71.2513323%;
12 luminance
The luma value is calculated without gamma correction.
background: luminance(rgb(50, 250, 150));
It compiles in the CSS as shown below:
background: 78.53333333%;

No comments:

Post a Comment