Graphic...atSheet(3)
π 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 exceptnameandclosest_name.fromβ forname,closest_name.colorβ fornew,is_in_gamut(that's a sub, bestie).rawβ fornew,values.rangeβ fornew,values,distance.onlyβ fordistance,invert.toβ fordistance,mix,analogous,gradient.stepsβ forcomplement,analogous,gradient.tiltβ forcomplement,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
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
- arch rolling: perl-graphics-toolkit-color 2.22-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms