Text::...nctions(3pm)

πŸ“¦
version 1.0.4 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble

🌸 NAME 🌸

Text::Sass::Functions β€” literally the function library for Text::Sass, bestie πŸ’–

Oh and hey, this whole page lives under User Contributed Perl Documentation, in case the vibe check needed context.


✨ VERSION ✨

The version string is $LastChangedRevision: 71 $ πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

Okay so… there's genuinely nothing here. Empty. A void. No synopsis for us, bestie 😭


πŸ’… DESCRIPTION πŸ’…

Also empty!! No description!! We're going in raw, raw-dogging the docs, iykyk πŸ™ˆ


πŸ‘‘ SUBROUTINES/METHODS πŸ‘‘

Here's the whole lineup, no cap β€” every single one:

  • rgb(red, green, blue) β€” takes that lil triplet and turns it into a color 🌈
  • red(color) β€” hands you back the red part of a color ❀️
  • green(color) β€” hands you back the green part of a color πŸ’š
  • blue(color) β€” hands you back the blue part of a color πŸ’™ (the original says "og a color" instead of "of" and honestly? iconic. we stan a typo πŸ’€)
  • mix(color1, color2, weight = 50%) β€” blends two colors together, with a weight that defaults to 50% 🎨
  • hsl(hue, saturation, lightness) β€” converts an hsl triplet into a color ✨
  • hue(color) β€” gives you the hue part of a color πŸŒ€
  • saturation(color) β€” gives you the saturation part of a color 🌺
  • lightness(color) β€” gives you the lightness part of a color β˜€οΈ
  • adjust_hue(color) β€” changes the hue of a color, and yes it can also be called as adjust-hue (underscore bestie vs dash bestie, both valid) πŸ’«
  • lighten(color, amount) β€” makes a color lighter, obviously πŸ•―οΈ
  • darken(color, amount) β€” makes a color darker, spooky szn 🌚
  • saturate(color, amount) β€” makes a color more saturated πŸ”₯
  • desaturate(color, amount) β€” makes a color less saturated 🫧
  • grayscale(color) β€” converts a color to grayscale, the sad beige aesthetic 🩢
  • complement(color) β€” returns the complement of a color, its opposite-number soulmate 🫢
  • 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, no negativity allowed 🚫
  • unit(num) β€” returns the unit of a value πŸ“
  • unitless(num) β€” returns true if the number has no unit πŸ™…β™€οΈ

😭 DIAGNOSTICS 😭

Nothing here. No diagnostics. We diagnose ourselves 🩺


🌈 CONFIGURATION AND ENVIRONMENT 🌈

Also empty, bestie. No env vars, no config, nothing to set up. Just vibes 🧚


πŸ’œ DEPENDENCIES πŸ’œ

This thing leans on all of these, fr fr:

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

πŸ’€ INCOMPATIBILITIES πŸ’€

Empty!! No incompatibilities listed. Slay, I guess ✨


πŸ“ BUGS AND LIMITATIONS πŸ“

Okay so the tea β˜• β€” two things are known to be missing/broken:

  • Missing alpha routines: the rgba & hsla methods πŸ‘»
  • mix() doesn't support weight πŸ₯²
Not me finding out mix() takes a weight argument but doesn't actually support it. The audacity. πŸ™ˆ

🫢 AUTHOR 🫢

Author: Bjorn-Olav Strand β€” thank you for your service, king πŸ‘‘


This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.10 or, at your option, any later version of Perl 5 you may have available. πŸ“œ


And that's the whole page, bestie!! Generated by perl v5.36.0 on 2022-12-06 β€” mwah, love u, go write some Sass πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from