Programming :: Firelizards - Image Generation
Image Generation
These are very similar to pidgeons but much simpler, because I don't need to generate markings in particular, and the palettes are limited to randomisation within certain colour ranges.
Here's the scope:
- Firelizards can come in 6 colours: gold, bronze, brown, blue, green, and (popular non-canon) white.
- The ratios in the eggs should be randomised as such: gold 5%, bronze 10%, brown 20%, blue 30%, green 34%, white 1%. These are not the official figures, but adjusted so that it's more likely that a few of the rarer colours will show up in a batch.
- The specific shade of each colour will be randomised within reasonable ranges, so each firelizard is somewhat unique.
- Additionally, the base colour will be jiggled a little for the wing membranes.
- A texture has a chance of generating for the body and/or wings to provide a very slight patch of colour (also a value close to the base colour).
- White firelizards all have the same base and wing colour, but the patch of colour can be any hue in a very light colour.
- Eye colours are within the blue/green range (colour is dependent on mood and I wanted these to be in a calm/good mood)
- The eggs are also randomly generated. A texture is overlaid randomly to generate splotches and mottling.
- A new clutch is automatically generated once a week.
It's very much simpler than what I'm attempting with pidgeons (and it does generate faster even though it still takes a bit haha...).