[object Object]

← back to Wallco Ai

Colorway samples the GROUND not whole-image average: parse 'Ground: ... dominant #hex' from luxe prompt (891/891 have it). Frogs Saunter in Teal (was Rose), Peacocks Bacchanal in Honey (was Pewter)

cba74095643bdfe5ebcf80dd80261c9f0b25c374 · 2026-05-31 16:59:10 -0700 · Steve

Files touched

Diff

commit cba74095643bdfe5ebcf80dd80261c9f0b25c374
Author: Steve <steve@designerwallcoverings.com>
Date:   Sun May 31 16:59:10 2026 -0700

    Colorway samples the GROUND not whole-image average: parse 'Ground: ... dominant #hex' from luxe prompt (891/891 have it). Frogs Saunter in Teal (was Rose), Peacocks Bacchanal in Honey (was Pewter)
---
 scripts/refresh_designs_snapshot.py | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/scripts/refresh_designs_snapshot.py b/scripts/refresh_designs_snapshot.py
index 422ce05..61efc39 100644
--- a/scripts/refresh_designs_snapshot.py
+++ b/scripts/refresh_designs_snapshot.py
@@ -144,8 +144,19 @@ NOUNS = {
     'mural-scenic':   ['Scenic', 'Panorama', 'Vista', 'Frieze', 'Tapestry',
                        'Folly', 'Allée', 'Belvedere', 'Promenade', 'Pavillon']
 }
+def ground_hex(prompt):
+    # Luxe prompts state the actual background field: "Ground: Blue raffia (matched
+    # DW SKU ... , dominant #468499)". Colorway should name the GROUND, not the
+    # whole-image dominant_hex average (which skews toward the motif/florals).
+    # Steve 2026-05-31: "fix the colorway to sample the ground". 891/891 luxe-v2
+    # prompts carry it; fall back to dominant_hex when absent (non-luxe rows).
+    if not prompt:
+        return None
+    m = re.search(r'(?i)ground:[^.]*?#([0-9a-fA-F]{6})', prompt)
+    return ('#' + m.group(1)) if m else None
+
 def title_for(cat, hex_, id_, prompt=None):
-    color = colorway_name(hex_)
+    color = colorway_name(ground_hex(prompt) or hex_)
     # Animal categories: name from the actual creature → "Peacock Carouse in Verdigris"
     if cat in ANIMAL_NOUNS:
         animal = animal_in(prompt)

← ca9ff25 generator batch: attribute run to actual created IDs from lo  ·  back to Wallco Ai  ·  Publish luxe-v2 batch L3 image-reviewed (41871,41905,41875,4 004c457 →