Ricardo SIGNES > Color-Palette-0.100002 > Color::Palette::Schema

Download:
Color-Palette-0.100002.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.100002   Source   Latest Release: Color-Palette-0.100003

NAME ^

Color::Palette::Schema - requirements for a palette

VERSION ^

version 0.100002

DESCRIPTION ^

Most of this is documented in Color::Palette. Below is just a bit more documentation.

ATTRIBUTES ^

required_colors

This is an arrayref of color names that must be present in any palette checked against this schema.

METHODS ^

check

  $schema->check($palette);

This method will throw an exception if the given palette doesn't meet the requirements of the schema.

AUTHOR ^

Ricardo SIGNES <rjbs@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2011 by Ricardo SIGNES.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: