Games::Framework::RCP::Database::Result::Color - The foreground/background color combinations.
0.23
The colors table allows a Game Master to give a class, move, item, or almost anything else a foreground and background color for variety. The format is specifically left unspecified: one can use mIRC colors, HTML colors, or any other color system. The only thing to be careful of: do not try to store every color in the universe. Why is that?
Assuming HTML color format, there are 1000000 colors using hexadecimal. Squaring that gives 1000000000000 hex, or 2^48 in decimal. Storage requires 8 bytes for the ID, 4 bytes for the foreground, and 4 bytes for the background, so multiplying 2^48 * 16 = 2^52 bytes. How many bytes is that exactly? Well, take a look below:
Needless to say, keep the colors you use for your home game in moderation. ☺
The foreground/background color combinations.
This is the primary key of the table, using the traditional auto incrementing.
This is the foreground color.
This is the background color.
sqlt_deploy_hook is used to define the table settings for the various databases.
Jason Felds, <wolfman.ncsu2000 at gmail.com>
<wolfman.ncsu2000 at gmail.com>
Please report any bugs or feature requests to bug-Games-Framework-RCP at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Games-Framework-RCP-Database-Result-Color. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-Games-Framework-RCP at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Games::Framework::RCP::Database::Result::Color
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Games-Framework-RCP-Database-Result-Color
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Games-Framework-RCP-Database-Result-Color
CPAN Ratings
http://cpanratings.perl.org/d/Games-Framework-RCP-Database-Result-Color
Search CPAN
http://search.cpan.org/dist/Games-Framework-RCP-Database-Result-Color/
Major thanks must be given to the Freenode Perl channel for pointing out the futility of storing every single color combination in a database.
See Games::Framework::RCP for all other acknowledgements.
Copyright 2009 Jason Felds, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '☺'. Assuming UTF-8
To install Games::Framework::RCP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Framework::RCP
CPAN shell
perl -MCPAN -e shell install Games::Framework::RCP
For more information on module installation, please visit the detailed CPAN module installation guide.