Skip to content

Commit acac0ae

Browse files
committed
add 'Colorful' preset to tartan shader
1 parent 97608c6 commit acac0ae

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

packages/shaders-react/src/shaders/tartan.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,19 @@ export const defaultPreset: TartanPreset = {
2727
},
2828
};
2929

30-
export const tartanPresets: TartanPreset[] = [defaultPreset];
30+
export const colorfulPreset: TartanPreset = {
31+
name: 'Colorful',
32+
params: {
33+
...defaultPatternSizing,
34+
stripeCount: 9,
35+
stripeColors: ['#cc3333', '#cc9933', '#99cc33', '#33cc33', '#33cc99', '#3399cc', '#3333cc', '#9933cc', '#cc3399'],
36+
stripeWidths: [1, 2, 2, 2, 2, 2, 2, 2, 1],
37+
weaveSize: 6.0,
38+
weaveStrength: 0.25,
39+
},
40+
};
41+
42+
export const tartanPresets: TartanPreset[] = [defaultPreset, colorfulPreset];
3143

3244
export const Tartan: React.FC<TartanProps> = memo(function TartanImpl({
3345
// Own props

0 commit comments

Comments
 (0)