Writing it
dharmatiles version="1.0.0"
use "parts/grass" lawn
tile size="1x1" seed=7 {
stack {
base
dirt
scatter perSquare=4 { flower size="4dmm .. 6dmm" petals=5 } // many, each its own size
flower at="(0.5sq, 0.5sq)" size="5dmm" // or one, where you say
lawn
}
}
A scatter may mix flowers with rocks and trees (weight= picks each one); the flowers are placed last, clear of the others. Flowers keep to dry ground, inside the scatter's region and clear of rocks, trees and walls; a flower given a point must stand clear of the tile edge by its reach.
Reference
at= region, pointControls
| Control | Takes | Default | What it does |
|---|---|---|---|
size | length (dmm), 1 to 20, or a range, or a weighted range | 5dmm | width across the petals' tips |
petals | count, 0 to 12 | 5 | petals round the centre |
centre | length (dmm), 0.3 to 8 | 1.5dmm | radius of the centre dome |
stem | length (dmm), 0.3 to 6 | 1dmm | height of the column under each dome |
dome | length (dmm), 0.2 to 4 | 1dmm | height of the centre dome |
petal | length (dmm), 0.2 to 4 | 0.5dmm | height of each petal dome |
In the library
1x1-grass-flowers.dtilelib:tiles/ground/1x1-grass-flowers.dtile · Open in the editor2x2-glade.dtilelib:tiles/ground/2x2-glade.dtile · Open in the editor
Generated from dharmatiles elements flower by cargo xtask docs.
Notes
Flowers paint in the flower colour of the palette. Every size is a length: in dmm it scales with the system.
Seen from the language
The guide pages that use flower: Placement and scatter, Things and layers.
