|
Apache::Wyrd::CSSGene - Example Wyrd for breeding CSS stylesheets |
Apache::Wyrd::CSSGene - Example Wyrd for breeding CSS stylesheets
<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>
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.
NO PUBLIC METHODS
(Besides bordering on the absurd) Reserves the _format_output method.
Barry King <wyrd@nospam.wyrdwright.com>
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 |