feat: Farbvorschlag aus Vorschaubild via K-Means Clustering
Beim Hochladen eines Vorschaubilds werden automatisch bis zu 3 dominante Farben per K-Means++ extrahiert und als Vorschlag angezeigt. Der User kann den Vorschlag übernehmen oder ablehnen und manuell fortfahren. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
12
index.html
12
index.html
@@ -120,7 +120,17 @@
|
||||
|
||||
<div id="schema-farben-preview" class="schema-farben-preview"></div>
|
||||
|
||||
<div id="schema-farbe-eingabe">
|
||||
<!-- Farbvorschlag aus Bild -->
|
||||
<div id="schema-vorschlag" style="display:none;margin-bottom:1rem">
|
||||
<p class="subtitle" style="margin-bottom:0.5rem">Erkannte Farben aus dem Vorschaubild:</p>
|
||||
<div id="schema-vorschlag-farben" style="display:flex;gap:0.5rem;flex-wrap:wrap;margin-bottom:0.75rem"></div>
|
||||
<div class="btn-row">
|
||||
<button class="action-btn" id="schema-vorschlag-annehmen-btn" type="button" style="background:#222;color:#fff;border-color:#222">Vorschlag übernehmen</button>
|
||||
<button class="action-btn" id="schema-vorschlag-ablehnen-btn" type="button">Manuell eingeben</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="schema-farbe-eingabe" style="display:none">
|
||||
<p id="schema-farbe-label" class="subtitle" style="margin-bottom:0.5rem">Farbe 1</p>
|
||||
|
||||
<div class="modal-field">
|
||||
|
||||
Reference in New Issue
Block a user