feat(studio): linen and paper grain, two quiet textures among the patterns

This commit is contained in:
Maurice
2026-10-24 09:29:33 +02:00
parent 8893e3afe0
commit 82bdf62c7b
31 changed files with 100 additions and 9 deletions
+2
View File
@@ -42,6 +42,8 @@ export const BOOK_PATTERNS = [
'scales',
'sunburst',
'confetti',
'linen',
'grain',
] as const;
export type BookPattern = (typeof BOOK_PATTERNS)[number];
+1 -1
View File
@@ -71,7 +71,7 @@ describe('the paint contract', () => {
for (const p of [{ type: 'solid', color: '#abcdef', alpha: 0.4 }, linear, radial, stripes]) {
expect(bookPaintSchema.parse(p)).toEqual(p);
}
expect(BOOK_PATTERNS).toHaveLength(12);
expect(BOOK_PATTERNS).toHaveLength(14);
for (const pattern of BOOK_PATTERNS) expect(bookPaintSchema.safeParse({ ...stripes, pattern }).success).toBe(true);
});
@@ -138,4 +138,6 @@ export const BOOK_PATTERN_LINES: Readonly<Record<BookPattern, string>> = {
scales: 'Overlapping half circles, fish scales or roof tiles.',
sunburst: 'Rays from a centre, a sunburst.',
confetti: 'Scattered confetti.',
linen: 'Fine woven threads, the texture of a cloth-bound book, best in a colour close to its ground.',
grain: 'Fine scattered specks, the grain of paper or kraft card, best in a colour close to its ground.',
};