Apache::Wyrd::CSSGene - Example Wyrd for breeding CSS stylesheets



NAME

Apache::Wyrd::CSSGene - Example Wyrd for breeding CSS stylesheets


SYNOPSIS

    <BASENAME::CSSGene>
      <BASENAME::Template>
        <style type="text/css">
          TD.developing {
            font-size: #10-32#px;
            background-color: #@000000,00AAFF,FFFFFF@;
            margin: *
          }
        </style>
      </BASENAME::Template>
    </BASENAME::CSSGene>


DESCRIPTION

This Wyrd is provided as an example. Given a Wyrd::Template stylesheet named 'stylesheet', it will use a genetic algorithm to aid in the fine-tuning of a web page CSS. Within this stylesheet template, it will replace any sequence of #number-number# with values between those number ranges, or any * with a number within the default ranges, or any @value,value,value@ with one of the indicated values.

This will allow a stylesheet to be ``bred'' out of many elements within acceptable parameters until the desired look is achieved. It will do so by providing an interface that allows the ``more fit'' style to be selected and for bad stock to be culled.

HTML ATTRIBUTES

population
size of the gene pool. (default: 20)

sample
size of mating pool. (default: same as population)

tempdir
temporary database to store state invformation on the gene pool.

deviation
amount of deviation for '*' values (@xx@ and #xx# values provide their own range)

PERL METHODS

NO PUBLIC METHODS


BUGS/CAVEATS/RESERVED METHODS

(Besides bordering on the absurd) Reserves the _format_output method.


AUTHOR

Barry King <wyrd@nospam.wyrdwright.com>


SEE ALSO

Apache::Wyrd
General-purpose HTML-embeddable perl object


LICENSE

Copyright 2002-2004 Wyrdwright, Inc. and licensed under the GNU GPL.

See LICENSE under the documentation for Apache::Wyrd.

 Apache::Wyrd::CSSGene - Example Wyrd for breeding CSS stylesheets