Element ยท thing

flower

One wildflower: a thin dome on a column, ringed by petal domes on cones. A flower is placed and sized like every other thing, a rock or a tree: one stands at= a point or somewhere in a region, and many are a scatter. Flowers listed above the grass are there when it grows, so the grass grows round them, never through them. A dirt listed after the flowers covers their feet, as written.

lib:tiles/ground/1x1-grass-flowers.dtile: four flowers in a lawn.
lib:tiles/ground/1x1-grass-flowers.dtile: four flowers in a lawn.

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

Kind
a thing: one solid, standing on the surface
Place
at= region, point
Built
yes

Controls

ControlTakesDefaultWhat it does
sizelength (dmm), 1 to 20, or a range, or a weighted range5dmmwidth across the petals' tips
petalscount, 0 to 125petals round the centre
centrelength (dmm), 0.3 to 81.5dmmradius of the centre dome
stemlength (dmm), 0.3 to 61dmmheight of the column under each dome
domelength (dmm), 0.2 to 41dmmheight of the centre dome
petallength (dmm), 0.2 to 40.5dmmheight of each petal dome

In the library

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.