Convert::Color::ScaleModels - converts between color numbers from scale model paint manufacturers (Humbrol, Revell, Tamiya)
Version 0.03
This module converts between color numbers from scale model paint manufacturers (Humbrol, Revell, Tamiya).
use Convert::Color::ScaleModels; my $color = Convert::Color::ScaleModels->new(); my $revell_flesh_num = $color->convert('61', 'humbrol', 'revell'); print "manufacturer = $color->{man}\n"; # 'revell' print "color name = $color->{name}\n"; # 'flesh matt' print "color number = $color->{num}\n"; # 35 print "color number (return value from method) = $revell_flesh_num\n"; # also 35
The color number values are taken from Humbrol's own conversion tables (http://humbrol.com/convert-to-humbrol/conversion-tables/).
Creates new color object. Each object carries a color name (name), color number (num) and manufacturer name (man), undefined at object creation.
name
num
man
my $color = Convert::Color::ScaleModels->new();
Converts between color numbers from scale model paint manufacturers (Humbrol, Revell, Tamiya). The object properties (name, num and man) are set after conversion. For instance, to convert color number 61 ('flesh matt') from Humbrol to the corresponding value from Revell (if available), use
my $revell_flesh_num = $color->convert(61, 'humbrol', 'revell'); # $revell_flesh_num = 35
Returns color name, given color number and manufacturer. Otherwise, returns undef.
undef
print $color->name('65', 'humbrol'); # 'aircraft blue matt'
Ari Constancio, <affc at cpan.org>
<affc at cpan.org>
Please report any bugs or feature requests to bug-convert-color-scalemodels at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Convert-Color-ScaleModels. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-convert-color-scalemodels at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Convert::Color::ScaleModels
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Convert-Color-ScaleModels
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Convert-Color-ScaleModels
CPAN Ratings
http://cpanratings.perl.org/d/Convert-Color-ScaleModels
Search CPAN
http://search.cpan.org/dist/Convert-Color-ScaleModels/
Copyright 2012 Ari Constancio.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Convert::Color::ScaleModels, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Convert::Color::ScaleModels
CPAN shell
perl -MCPAN -e shell install Convert::Color::ScaleModels
For more information on module installation, please visit the detailed CPAN module installation guide.