Text::Sass::Functions(3pm)

Text::Sass::Functions3pm

Version

$LastChangedRevision: 71 $

Overview

Subroutines/methods

rgb(red, green, blue)

Converts triplet into a color.

red(color)

Returns the red part of a color.

green(color)

Returns the green part of a color.

blue(color)

Returns the blue part og a color.

mix(color1, color2, weight = 50%)

Mixes two colors together.

hsl(hue, saturation, lightness)

Converts as hsl triplet into a color.

hue(color)

Returns the hue part of a color.

saturation(color)

Returns the saturation part of a color.

lightness(color)

Returns the lightness part of a color.

adjust_hue(color)

Changes the hue of a color, can be called as adjust-hue.

lighten(color, amount)

Makes a color lighter.

darken(color, amount)

Makes a color darker.

saturate(color, amount)

Makes a color more saturated.

desaturate(color, amount)

Makes a color less saturated.

grayscale(color)

Converts a color to grayscale.

complement(color)

Returns the complement of a color.

unquote(str)

Removes the quotes from a string.

quote(str)

Adds quotes to a string.

percentage(num)

Converts a unitless number to a percentage.

round(num)

Rounds a number to the nearest whole number.

ceil(num)

Rounds a number up to the nearest whole number.

floor(num)

Rounds a number down to the nearest whole number.

abs(num)

Returns the absolute value of a number.

unit(num)

Returns the unit of a value.

unitless(num)

Returns true if the number has no unit.

Diagnostics

Configuration and environment

Dependencies

strict
warnings
Carp
POSIX
Readonly
Convert::Color
Text::Sass::Expr

Incompatibilities

Bugs and limitations

Missing alpha routines rgba & hsla methods.

mix() doesn't support weight.

Releases

7 releases since Debian 7 (Wheezy); the text changed 4 times.

  1. 7
  2. 8
  3. 9–10
  4. 11
  5. 12–13

Author

Author: Bjorn-Olav Strand

From libtext-sass-perl 1.0.4-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.