diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2022-09-14 23:30:46 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2022-09-14 23:30:46 +0200 |
| commit | b0d4f79820eecafadaffc443df57eb0d18872b9e (patch) | |
| tree | 3b449d608f2b1ad6d6530fb34429ee12aff819d4 /presets/parse.py | |
| parent | 038ef83ec9c57add1d53202bfdb9cf141b6dc6ab (diff) | |
| download | gof-rs-b0d4f79820eecafadaffc443df57eb0d18872b9e.tar.xz gof-rs-b0d4f79820eecafadaffc443df57eb0d18872b9e.zip | |
Added all patterns to the code and made that you could select between them with j and k and animate them with a and stop the animation with s
Diffstat (limited to 'presets/parse.py')
| -rwxr-xr-x | presets/parse.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/presets/parse.py b/presets/parse.py deleted file mode 100755 index fb06bce..0000000 --- a/presets/parse.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python3 - - -with open("/home/pengu/test/rust-dev/gof-rs/presets/patterns-striped.txt", "r") as file: - with open("./new.txt", "w") as newfile: - cnt = 0 - for line in file.readlines(): - if line != '\n': - if cnt > 0: - newfile.write("\n") - if len(line) < 73 and line != '\n': - txt = line.rstrip().center(72, ".") + '\n' - newfile.write(txt) - cnt = 0 - if line == '\n': - cnt += 1 - |
