Subversion Repositories DIN Is Noise

Rev

Rev 2130 | Rev 2229 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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