fracwall

This fractal wallpaper generator creates a bitmap file depicting either the Mandelbrot or the Julia set
Log | Files | Refs | README | LICENSE

config.h (1623B)


      1 /*
      2   Configuration File Header
      3   "config.h"
      4   M. Yamanaka
      5   email: myamanaka@live.com
      6   website: csmyamanaka.com
      7   license: MIT (See included "LICENSE" file for details)
      8 */
      9 
     10 #pragma once
     11 
     12 /*
     13   I have borrowed a design concept from Suckless Software and made the
     14   configuration file a component of the source code to be compiled with
     15   the rest of the software.
     16   
     17   NOTE!!
     18   Please do not edit the values here. This is a header file and should
     19   not have any assignments. PLEASE!!!! edit the source file "config.c".
     20   I know you normally edit the header files for Suckless programs
     21   but in this case, please edit the source file.
     22 */
     23 
     24 /*
     25   Your output image details.
     26   It might be nice to have an image that is exactly your screen size.
     27   By default, this set to my screen size.
     28 */
     29 
     30 
     31 const char* img_name;
     32 int img_width;
     33 int img_height;
     34 
     35 /*
     36   The fractal window on the complex plane. The image details above are converted in the program to match
     37   these values. By default, I adjusted the vertical max and min values to that the image doesn't get
     38   stretched horizontally but this can be changed to whatever the user wants.
     39 */
     40 float vx_min;
     41 float vx_max;
     42 float vy_min;
     43 float vy_max;
     44 
     45 /*
     46   maximum number of iterations f(z) or "fz" in "juliamath.h" before the recursion terminates.
     47 */
     48 int iter_max;
     49 
     50 /*
     51   Fractal flag
     52   If this value is 0, the program generates the Mandelbrot set. Otherwise, it produces a Julia set.
     53 */
     54 int fractal_flag;
     55 
     56 /*
     57   Pre-selected constant value for the Julia set {re, im}.
     58   By default, I have C = -0.1 - i. I tried several values experimentally and found I like this one.
     59 */
     60 float julia_C[2];
     61 

Generated using stagit (https://codemadness.org/stagit.html)