Skip to main content

Write Feature Color

Choose a color for a feature

Written by Holly Conrad Smith

Use this when you want to set the display color of a feature within a flow, for example color-coding features based on a calculated value or condition.

This node is only for changing the color of geometries parametrically within a flow. To simply change the appearance of a geometry, use the Appearance widget in the property palette.

This node doesn't change the color of a road or path. Road and path color comes from the Roads transform's Road Color and Pavement Color settings. See Roads (flow node) for how to add and set those.

Inputs:

Feature (feature): The feature to write to.

Color (color): The color to write. Defaults to #ff0000.

Outputs:

Feature (feature): The feature with the color written.

Add Color to an Existing Flow

To color geometry a flow already produces, other than a road or path, add a Write Feature Color node right before the flow's write features node.

This does not apply to roads or paths. Their color comes from the Roads transform's Road Color and Pavement Color settings, not from this node. See Roads (flow node).

  1. Click the wire running into write features and press del to remove it.

  2. Add a Write Feature Color node to the canvas.

  3. Connect the output of the node that used to feed write features into the Feature input of Write Feature Color.

  4. Add a Color node, set the color you want, and connect it into the Color input of Write Feature Color.

  5. Connect the Feature output of Write Feature Color into write features.

If the flow branches into more than one path, add the Write Feature Color node only on the branch you want to recolor. Leave the other branches' wires connected the way they were.

Did this answer your question?