Skip to content

FractalGen v1.4+words

Latest
Compare
Choose a tag to compare
@username1565 username1565 released this 07 Mar 09:16
· 2 commits to master since this release
1ed8b2c

FractalGen v1.4+words.
Add custom wordsList and specified pathway. Some optimizations.

Full Changes:

  1. Don't close window, after generate and close it after press key.
  2. Change string [] to list to using InsertRange. This need to add words to lists.
  3. Add words.txt with custom words.
  4. Read words from words.txt, if this exists, and append append it to empty lists, using InsertRange.
  5. If file not exists, using default words and write this to words.txt
  6. Change many else if to few simple operations.

  1. Make this more optimized, using shifting.

  1. Add comment in beginning
  2. Replace words.txt to fractalgen_words.txt
  3. Make this program as module for nanoboard sources, by setting type string for Main and renaming this to Main_. Add comment there.
  4. Add comment for usage info, because this can be commented in module.
  5. Define empty string result to return result from module. Add commented return result.
  6. Make methods public for module. Now this can be used as "fractalgen.Program.Main_(new string[]{param1, param2})", after "using fractalgen;"
  7. Convert list to string array, because MSBuild.exe see error there. But csc.exe can compile this without any problem.
  8. Method GenerateToFile now have the type string, and return string.
  9. Hide displaing params there, at beginning.
  10. Pathway generated in separate string now. This string will be returned, after generating.

  1. Made comment about renaming Main_ to Main - more understandable.
  2. Add pathway as third parameter. This can be relative path or fullpathway to save fractal image.
  3. Add this to parse and as param to other methods.
  4. Add spaces near "+" -> " + "
  5. Move some words, with incorrect type.
  6. Change type of verbList to sring array and rename this to wordsList. No need to convert list into string array, now.
  7. Show line in console, if fractalgen_words.txt exists.
  8. Remove old code, that was been commented, and optimized.
  9. 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.
  10. Random change values for subpixels. Earlier all pixel was been changed in each iteration.

  1. Change "containers" to "My_folder_for_images".
  2. Add the case when 0 arguments sent (just double click on exe). Now no any exceptions there.
  3. Add supporting comments, starts with "#" in fractalgen_words.txt. Now program skip the lines, started with "#".
  4. Add code to try create directory, if this does not exists in specified pathway.
  5. 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.
  6. Add message in the end: "Press any key to exit...".