Maps terrain verbs to brush ring colors, including sampling mode.
// Source: https://github.com/pascalorg/editor | License: MIT | Copyright 2026 Pascal Group Inc
// Provided via justclaw.it.com; keep this notice with the code.
// The verb→colour mapping, shared by the brush ring on the canvas and the verb
// picker in the panel.
//
// Its own module because the two consumers cannot import each other: the ring is an
// R3F component (`useFrame`, `three`) and the panel is a plain sidebar surface that
// must not drag a render loop into its module graph. Duplicating four hex strings
// across them would be the version that silently drifts — and drift here is not
// cosmetic, since the whole point is that the two surfaces agree.
import type { TerrainVerb } from '@pascal-app/core'
/**
* One colour per verb, because the brush ring's geometry is identical fo
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key