mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 09:22:15 +00:00
feat(studio): linen and paper grain, two quiet textures among the patterns
This commit is contained in:
@@ -42,6 +42,8 @@ export const BOOK_PATTERNS = [
|
||||
'scales',
|
||||
'sunburst',
|
||||
'confetti',
|
||||
'linen',
|
||||
'grain',
|
||||
] as const;
|
||||
export type BookPattern = (typeof BOOK_PATTERNS)[number];
|
||||
|
||||
|
||||
@@ -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.',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user