Graphi...es::SVG(3pm)

πŸ“¦
version 1.14 Β· 5 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

✨ Graphics::ColorNames::SVG ✨

okay bestie, gather round, because this is a lil Perl module from the User Contributed Perl Documentation corner of the universe (that's the 3pm section, iykyk) and it's giving ✨aesthetic color names✨ πŸ’…


πŸŽ€ NAME πŸŽ€

Graphics::ColorNames::SVG β€” SVG color names and their equivalent RGB values πŸ¦‹


🌸 SYNOPSIS 🌸

require Graphics::ColorNames::SVG;

$NameTable = Graphics::ColorNames::SVG->NamesRgbTable();
$RgbBlack  = $NameTable->{black};

like, you pull the name table, you index it by a color name, boom, you got RGB. main character energy fr fr πŸ’–


πŸ’œ DESCRIPTION πŸ’œ

So this module defines color names and the RGB values that go with them, straight from the SVG 1.2 Specification. iconic of it honestly πŸ‘‘

Lowkey important tea though: right now it's just an alias for Graphic::ColorNames::WWW β€” yes, spelled exactly like that in the source, no I'm not fixing it, it is what it is πŸ™ˆ β€” and that could change in the future. So the rec is: just use the WWW module instead, because it will always implement a superset of this one. more colors, no downside, slay 🌈

And if you wanna know how to actually use this module, go read the documentation of Graphics::ColorNames. it's all there, bestie 🫢


πŸ¦‹ SEE ALSO πŸ¦‹


πŸ‘‘ AUTHOR πŸ‘‘

Claus Faerber <CFAERBER@cpan.org> πŸ’Œ


πŸŽ€ LICENSE πŸŽ€

Copyright 2008-2009 Claus Faerber.

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

so yes, it's Perl-licensed, go wild, but keep the copyright notice, periodt πŸ’…

and that's the whole vibe check, bestie πŸ’– this lil doc came from perl v5.28.1, dated 2019-08-21, and it lives in the Graphi...es::SVG(3pm) page β€” no cap, go forth and name your colors 🌸✨

πŸ“¦ where this page comes from