sample_colors
Samples mean colors at specified map points and compares source VTT with rebuilt export, revealing per-channel RGB differences so you can adjust tints by number rather than by eye.
Instructions
Read the mean colour at map points, to match tints by number, not by eye.
For a rebuild: compare the source image with your build at the same
points (a floor patch, a wall, each rug) and adjust tints until max_diff
is a few levels. Tints judged by eye came out 10-20% too saturated.
points: up to 64 [x, y] map woxels, on what you want to compare.
dd2vtt: path to the Universal VTT export the map was rebuilt from. Its
image is the source, aligned as import_dd2vtt placed it.
export: 'latest' samples your newest export_map render, or name an
export file; '' skips it. Export with grid=False at the source's
pixels-per-grid (source_ppg in the reply), after each tint change:
with the grid drawn, identical floors differed by up to 22 levels.
radius: half-width in woxels of the square averaged around each point
(default 32, an eighth of a tile). Keep it inside one surface.
Returns each point's colour per source and, with both, diff_rgb (export
minus source, per channel: positive is lighter or more of that channel)
and max_diff. Both images include lighting; compare like with like.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"points": "<points>"
},
"name": "sample_colors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dd2vtt | No | ||
| export | No | latest | |
| points | Yes | ||
| radius | No |