Rev 2228 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2228 | Rev 2229 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | /*
|
|
1 | /* morse_code.h
|
2 | * morse_code.h
|
2 | * DIN Is Noise is copyright (c) 2006-2024 Jagannathan Sampath
|
3 | * DIN Is Noise is copyright (c) 2006-2024 Jagannathan Sampath
|
3 | * DIN Is Noise is released under GNU Public License 2.0
|
4 | * DIN Is Noise is released under GNU Public License 2.0
|
4 | * For more information, please visit https://dinisnoise.org/
|
5 | * For more information, please visit https://dinisnoise.org/
|
5 | */
|
6 | */
|
6 | 7 | ||
Line 32... | Line 33... | ||
32 | // generation
|
33 | // generation
|
33 | int add_first_vertex; |
34 | int add_first_vertex; |
34 | point<float> org; |
35 | point<float> org; |
35 | point<float> vi; |
36 | point<float> vi; |
36 | 37 | ||
- | 38 | ||
37 | morse_code (const std::string& ln, const std::string& sn); |
39 | morse_code (const std::string& ln, const std::string& sn); |
38 | ~morse_code (); |
40 | ~morse_code (); |
39 | int load (const std::string& fname); |
41 | int load (const std::string& fname); |
40 | int operator() (tokenizer& tz); |
42 | int operator() (tokenizer& tz); |
41 | int create_pattern (const std::string& text, float tox = 1.0f); |
43 | int create_pattern (const std::string& text, float tox); |
42 | void append (multi_curve& m, multi_curve& p); |
44 | void append (multi_curve& m, multi_curve& p); |
43 | void scale_tox (multi_curve& m, float tox); |
45 | void scale_tox (multi_curve& m, float tox); |
44 | 46 | ||
45 | 47 | ||
46 | }; |
48 | }; |
47 | 49 | ||
48 | extern morse_code mc; |
50 | extern morse_code mc; |
49 | #endif
|
51 | #endif
|
- | 52 | ||
- | 53 | ||
- | 54 |