FractalGen v1.4+words.
Add custom wordsList and specified pathway. Some optimizations.
Full Changes:
- Don't close window, after generate and close it after press key.
- Change string [] to list to using InsertRange. This need to add words to lists.
- Add words.txt with custom words.
- Read words from words.txt, if this exists, and append append it to empty lists, using InsertRange.
- If file not exists, using default words and write this to words.txt
- Change many else if to few simple operations.
- Make this more optimized, using shifting.
- Add comment in beginning
- Replace words.txt to fractalgen_words.txt
- Make this program as module for nanoboard sources, by setting type string for Main and renaming this to Main_. Add comment there.
- Add comment for usage info, because this can be commented in module.
- Define empty string result to return result from module. Add commented return result.
- Make methods public for module. Now this can be used as "fractalgen.Program.Main_(new string[]{param1, param2})", after "using fractalgen;"
- Convert list to string array, because MSBuild.exe see error there. But csc.exe can compile this without any problem.
- Method GenerateToFile now have the type string, and return string.
- Hide displaing params there, at beginning.
- Pathway generated in separate string now. This string will be returned, after generating.
- Made comment about renaming Main_ to Main - more understandable.
- Add pathway as third parameter. This can be relative path or fullpathway to save fractal image.
- Add this to parse and as param to other methods.
- Add spaces near "+" -> " + "
- Move some words, with incorrect type.
- Change type of verbList to sring array and rename this to wordsList. No need to convert list into string array, now.
- Show line in console, if fractalgen_words.txt exists.
- Remove old code, that was been commented, and optimized.
- Optimize noice cycle, by using 1 random number (4 bytes = 32 bits / 4 = 8) for each 8 pixels. No need to generate 4 bytes for each pixel, now.
- Random change values for subpixels. Earlier all pixel was been changed in each iteration.
- Change "containers" to "My_folder_for_images".
- Add the case when 0 arguments sent (just double click on exe). Now no any exceptions there.
- Add supporting comments, starts with "#" in fractalgen_words.txt. Now program skip the lines, started with "#".
- Add code to try create directory, if this does not exists in specified pathway.
- Add fractalgen_words.txt with wordlist from original FractalGen v1.1 + comments there.
With this file 2 words generating, like in old fractalgen. Just for history.
This file can be renamed, and will be regenerated then, after restart program, and will contains 4 words, by default. - Add message in the end: "Press any key to exit...".