Tutorials using Fill Color
Drives an element’s fill from a colour parameter, so whatever already knows the state picks the colour.
What Fill Color does
A Fill Color binding replaces an element’s fill with a colour the widget is given. The parameter is a colour, not a state: the graphic does not decide what red means, it paints what it is handed.
That is the reason to prefer it over the conditional fills. A condition written into a drawing is a copy of a rule that already exists somewhere — an alarm priority, a product code, a site colour standard — and the copy is what goes stale. A colour parameter moves the decision back to where the rule lives, and one widget then serves every project that uses it.
Two things to know. Adding the binding removes the element’s design-time fill, so what you see from then on is the simulated colour rather than the one you drew. And a binding on a group clears the fill from the shapes inside it, which is usually what you want and occasionally a surprise.
Reach for a conditional fill instead when the graphic genuinely owns the rule — a two-colour hand valve, say, where there is nothing upstream to ask.