-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathcolor-panels-def.ts
More file actions
97 lines (95 loc) · 2.36 KB
/
Copy pathcolor-panels-def.ts
File metadata and controls
97 lines (95 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import { colorPanelsPresets } from '@paper-design/shaders-react';
import { animatedCommonParams, type ShaderDef } from '@paper-design/shaders';
const defaultParams = colorPanelsPresets[0].params;
export const colorPanelsDef: ShaderDef = {
name: 'Color Panels',
description: 'Glowing translucent 3D panels rotating around a central axis.',
params: [
{
name: 'colors',
type: 'string[]',
defaultValue: [],
isColor: true,
description: 'Up to 7 colors used to color the panels',
},
{
name: 'colorBack',
type: 'string',
defaultValue: defaultParams.colorBack,
isColor: true,
description: 'Background color',
},
{
name: 'density',
type: 'number',
min: 0.25,
max: 7,
defaultValue: defaultParams.density,
description: 'Angle between every 2 panels',
},
{
name: 'angle1',
type: 'number',
min: -1,
max: 1,
defaultValue: defaultParams.angle1,
description: 'Skew angle applied to all panes',
},
{
name: 'angle2',
type: 'number',
min: -1,
max: 1,
defaultValue: defaultParams.angle2,
description: 'Skew angle applied to all panes',
},
{
name: 'length',
type: 'number',
min: 0,
max: 3,
defaultValue: defaultParams.length,
description: 'Panel length (relative to total height)',
},
{
name: 'edges',
type: 'boolean',
defaultValue: defaultParams.edges,
description: 'Color highlight on the panels edges',
options: ['true', 'false'],
},
{
name: 'blur',
type: 'number',
min: 0,
max: 0.5,
defaultValue: defaultParams.blur,
description: 'Side blur (0 for sharp edges)',
},
{
name: 'fadeIn',
type: 'number',
min: 0,
max: 1,
defaultValue: defaultParams.fadeIn,
description: 'Transparency near central axis',
},
{
name: 'fadeOut',
type: 'number',
min: 0,
max: 1,
defaultValue: defaultParams.fadeOut,
description: 'Transparency near viewer',
},
{
name: 'gradient',
type: 'number',
min: 0,
max: 1,
defaultValue: defaultParams.gradient,
description: 'Color mixing within a panel (0 = solid panel color, 1 = gradient of two colors)',
},
...animatedCommonParams,
],
};