Ari Constâncio

NAME

Convert::Color::ScaleModels - converts between color numbers from scale model paint manufacturers (Humbrol, Revell, Tamiya)

VERSION

Version 0.03

SYNOPSIS

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/).

SUBROUTINES/METHODS

new

Creates new color object. Each object carries a color name (name), color number (num) and manufacturer name (man), undefined at object creation.

    my $color = Convert::Color::ScaleModels->new();    

convert

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      

name

Returns color name, given color number and manufacturer. Otherwise, returns undef.

    print $color->name('65', 'humbrol');    # 'aircraft blue matt'

AUTHOR

Ari Constancio, <affc at cpan.org>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Convert::Color::ScaleModels

You can also look for information at:

LICENSE AND COPYRIGHT

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.