Games::Framework::RCP::Database::Result::Color - The foreground/background color combinations.
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.
<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.
You can find documentation for this module with the perldoc command.
You can also look for information at:
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.