Graphic...atSheet(3)

πŸ“¦ version 2.22, in arch rolling

πŸ’… Graphics::Toolkit::Color::Manual::CheatSheet β€” GTC keywords at a glance ✨

okay bestie so this is the whole Graphics::Toolkit::Color toolkit laid out flat so you can just eyeball it, no cap. It's the cheat sheet page β€” Manual::CheatSheet, under Graphics::Toolkit::Color β€” and it's literally just every keyword in one place. Let's go πŸŽ€


πŸ¦‹ METHODS

Value β€” the lil utility squad

  • is_in_gamut β€” checks whether a color actually fits inside the gamut. vibe check for colors fr.
  • values β€” hands you the raw numbers.
  • name / closest_name β€” get the name, or the nearest name when nothing's an exact match.
  • distance β€” how far apart two colors are.

Color β€” the glow-up crew

  • lighten / darken β€” brightness up, brightness down 🌸
  • saturate / desaturate β€” more pop / less pop.
  • tint / tone / shade β€” the classic trio, each its own lil flavor of adjusted.
  • tone_curve β€” the curve-y one, iykyk.
  • set_value / add_value β€” set a component outright, or add onto it.
  • mix β€” blend two colors together 🫢
  • invert β€” flip it to the opposite.

Sets β€” the group-chat builders

  • complement / analogous / gradient / cluster β€” build whole families of colors, not just one. main character energy πŸ‘‘

🌈 ARGUMENTS

here's which argument belongs to which method, so you never mix them up again:

  • in β€” works on all except name and closest_name.
  • from β€” for name, closest_name.
  • color β€” for new, is_in_gamut (that's a sub, bestie).
  • raw β€” for new, values.
  • range β€” for new, values, distance.
  • only β€” for distance, invert.
  • to β€” for distance, mix, analogous, gradient.
  • steps β€” for complement, analogous, gradient.
  • tilt β€” for complement, analogous, gradient.

✨ FORMATS

the many outfits a color can show up in β€” pick your fit:

                 list  (1,2,3)
                array  [1,2,3]
          named_array  [RGB =>  1,2,3 ]
         nested_array  [RGB => [1,2,3]]
                 hash  {red => 1, green => 2, blue => 3}
            char_hash  {r   => 1, g     => 2, b    => 3}
         named_string  'rgb: 1, 2, 3'
           css_string  'rgb( 1, 2, 3)'
           hex_string  '#010203' '#123' (RGB only)
heads up: that hex_string one is RGB only, okay? don't come for me.

🧚 SPACES

every color space this thing knows about, sorted by family:

  • RGB : RGB / LinearRGB / CIEXYZ / CIERGB / AdobeRGB / AppleRGB / ProPhotoRGB / WideGamutRGB / Display P3 / Display P3 Linear / DCI-P3 / Display P3 Linear / Rec.709 / Rec.2020
  • LAB : OKLAB / CIELAB / HunterLAB / CIELUV / YIQ / YUV
  • HSL : OKHSL / OKLCH / HSL / CIELCHab / CIELCHuv
  • HSV : OKHSV / HSV / HSB
  • HWB : OKHWB / HWB / NCol
  • other : CMY / CMYK
and yeah, Display P3 Linear really does show up twice in the RGB row β€” that's exactly how it's written here, so I'm keeping it, periodt πŸ’…

πŸ‘‘ AUTHOR

Herbert Breunung, <lichtkind@cpan.org> β€” shoutout, icon.

Copyright 2026 Herbert Breunung.

πŸ’– LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


and that's the whole sheet, bestie β€” go forth and slay those colors 🌈✨

sign-off time~ this was perl v5.42.2, dated 2026-06-21, page Graphic...atSheet(3) β€” mwah πŸ’‹

πŸ“¦ where this page comes from