Rev 2097 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1528 | jag | 1 | /* |
2 | * spiraler.h |
||
2302 | jag | 3 | * DIN Is Noise is copyright (c) 2006-2025 Jagannathan Sampath |
1528 | jag | 4 | * For more information, please visit http://dinisnoise.org/ |
5 | */ |
||
6 | |||
7 | |||
8 | #ifndef __SPIRALER |
||
9 | #define __SPIRALER |
||
10 | |||
11 | #include "spinner.h" |
||
12 | #include "plugin.h" |
||
13 | #include "point.h" |
||
14 | #include "ui_sin_cos_radius.h" |
||
15 | |||
16 | struct spiraler : plugin, ui_sin_cos_radius_listener { |
||
17 | |||
18 | // make a spiral |
||
19 | // |
||
20 | |||
21 | ui_sin_cos_radius scr; |
||
22 | |||
23 | point<float> center; |
||
24 | |||
25 | float radius; |
||
26 | float turns; |
||
27 | int num_points; |
||
1539 | jag | 28 | float phase; |
1528 | jag | 29 | |
1539 | jag | 30 | struct spinners { |
31 | spinner<float> radius; |
||
32 | spinner<float> turns; |
||
33 | spinner<int> num_points; |
||
34 | spinner<float> phase; |
||
35 | } sp; |
||
1528 | jag | 36 | |
37 | spiraler (); |
||
38 | ~spiraler (); |
||
39 | void load_params (); |
||
40 | void save_params (); |
||
41 | |||
42 | void setup (); |
||
43 | void render (); |
||
44 | |||
45 | void sin_cos_radius_optioned (); |
||
46 | void sin_cos_radius_edited (); |
||
47 | |||
48 | }; |
||
49 | |||
50 | extern spiraler spiraler_; |
||
51 | |||
52 | #endif |
||
53 | |||
54 | |||
55 |