diff --git a/src/index.html b/src/index.html index abffb6c..4ad42cd 100644 --- a/src/index.html +++ b/src/index.html @@ -2209,6 +2209,30 @@ border-radius: 6px; cursor: pointer; font-family: inherit; } .pixelToolMenu button:hover { background: rgba(127,127,127,.14); } + .pixelizePreviewRow { display: flex; gap: 12px; margin: 0 0 10px; } + .pixelizePreviewBox { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; } + .pixelizePreviewLabel { font-size: .72rem; color: #64748b; font-weight: 600; } + .pixelizePreviewArea { + width: 100%; aspect-ratio: 1; + background: repeating-conic-gradient(#e2e8f0 0% 25%, #f8fafc 0% 50%) 0 0 / 14px 14px; + border: 1px solid var(--line); border-radius: 6px; + display: flex; align-items: center; justify-content: center; + overflow: hidden; + } + .pixelizePreviewArea img, .pixelizePreviewArea canvas { + max-width: 100%; max-height: 100%; display: block; + image-rendering: pixelated; image-rendering: crisp-edges; + } + .pixelizeRow { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; } + .pixelizeField { + display: flex; align-items: center; gap: 6px; + font-size: .82rem; flex: 1; + } + .pixelizeField input { + width: 60px; padding: 4px 6px; + border: 1px solid var(--line); border-radius: 6px; + font-family: inherit; + } .toolOptions { grid-area: options; display: flex; @@ -3542,6 +3566,8 @@ + +
@@ -3611,7 +3637,6 @@
-

Drag on the gradient square + rainbow strip above to pick a colour, then click + Add to push it into the palette. The ⊙ eyedropper tool in the toolbar samples colours already on your sprite.

@@ -4022,6 +4047,42 @@ + +