• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux Graphics::ColorNames Download

Graphics::ColorNames

October 1, 2009
This software assigns RGB values to popular color names.
Version 2.11
License Perl Artistic License
Platform Linux
Supported Languages English
Homepage search.cpan.org
Developed by Robert Rothenberg
Graphics::ColorNames is a Perl module that provides an efficient and effective interface for developers to obtain the RGB values of colors by standard names. The intention is to provide an all in one module that authors can use with other modules to specify colors by name and free module authors from constantly reinventing the wheel whenever they decide to give users an option to specify a color by name instead of RGB value.

For instance, you can use Graphics::ColorNames 2.10; use GD; $pal = new Graphics::ColorNames; $img = new GD::Image(100, 100); $bgColor = $img->colorAllocate($pal->rgb('CadetBlue3')); Even though this code may seem a little bureaucratic, its meaning is transparent - $bgColor (or background color) is 'CadetBlue3' (which is more comfortable for a user to understand than 0x7A, 0xC5, 0xCD). Moreover, the variable is named primarily for its function, not form (i.e., $CadetBlue3) to prevent the variable name from being changed later when the author changes the background color.

Additionally, you can define "Custom Color Schemes" for specialized palettes for websites or institutional publications: $color = $pal->hex('MenuBackground');. As an added feature, a hexadecimal RGB value in the form of #RRGGBB, 0xRRGGBB, or RRGGBB will return itself: $color = $pal->hex('#123abc'); # returns '123abc'.

The SYNOPSIS section of the documentation provides an example of how the module can be employed; thus, the application process becomes straightforward. With the aid of the SYNOPSIS, one can use the module with ease to capture required information like $po = new Graphics::ColorNames(qw( X )); $rgb = $po->hex('green'); # returns '00ff00' $rgb = $po->hex('green', '0x'); # returns '0x00ff00' $rgb = $po->hex('green', '#'); # returns '#00ff00' $rgb = $po->rgb('green'); # returns '0,255,0' @rgb = $po->rgb('green'); # returns (0, 255, 0) $rgb = $po->green; # same as $po->hex('green'); tie %ph, 'Graphics::ColorNames', (qw( X )); and $rgb = $ph{green}; # same as $po->hex('green');.

In conclusion, Graphics::ColorNames is a useful module that both beginners and expert developers can benefit from as it offers users a rich and convenient interface that provides simplified color naming conventions. When you plan to design any graphical user interface, using this module would be another step towards giving your users a streamlined and user-friendly experience.
What's New

Version 2.11: N/A

Free Download 21.2K
320
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    154
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    89
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    80
  6. porm r2
    73
  7. Clewarecontrol 0.8
    72
  8. Java Games 1.0
    72
  9. Swiftfox 3.0b5pre-2
    71
  10. fuseftp 0.8
    71

Related Downloads

MeetmeAutoMute
Meetme software feature: automatic muting of conference participants.
SQLeonardo
A user-friendly and potent tool, the SQLeonardo project enables effortless querying of ...
Dark Horizons: Lore Demo
Dark Horizons: Lore Demo is a Linux-based, mech-style team-based war game featuring ...
Titlebar Tweaker
This software enables users to tweak the text on the title bar ...
MetaFS
MetaFS is a cutting-edge software solution that provides a sophisticated metadata layer ...
Treewatch
This software monitors a designated directory for any modifications made to a ...
GNMS
This is a free software system for managing networks.
swapd
Swapd is a program that creates swap dynamically and runs as a ...
Twiogle Search Toolbar
This software provides a toolbar that enables the user to search simultaneously ...
HTML::WordTagRatio::Ratio
This software contains a default module that calculates the word-to-tag ratio in ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.