home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / julia / julia.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  2.9 KB  |  90 lines

  1. /*************************************************************************
  2.  *                                                                       *
  3.  *  Copyright (c) 1992, 1993 Ronald Joe Record                           *
  4.  *                                                                       *
  5.  *  All rights reserved. No part of this program or publication may be   *
  6.  *  reproduced, transmitted, transcribed, stored in a retrieval system,  *
  7.  *  or translated into any language or computer language, in any form or *
  8.  *  by any means, electronic, mechanical, magnetic, optical, chemical,   *
  9.  *  biological, or otherwise, without the prior written permission of:   *
  10.  *                                                                       *
  11.  *      Ronald Joe Record (408) 458-3718                                 *
  12.  *      212 Owen St., Santa Cruz, California 95062 USA                   *
  13.  *                                                                       *
  14.  *************************************************************************/
  15.  
  16. /*
  17.  *    @(#) julia.h 1.3 93/11/01 MRINC
  18.  */
  19. /*
  20.  *    Written by Ron Record (rr@sco.com) 03 Sep 1991.
  21.  */
  22.  
  23. int bottom, screen;
  24. Display*    dpy;
  25. char*        displayname = 0;
  26.  
  27. extern double log();
  28. extern double fabs();
  29. extern long time();
  30. extern int optind;
  31. extern char *optarg;
  32.  
  33. unsigned long foreground, background;
  34.  
  35. Window canvas;
  36.  
  37. void     resize();
  38. void     redisplay();
  39. void     quit();
  40. void     Spin();
  41. void     start_iterate();
  42. void     stop_iterate();
  43. void     show_defaults();
  44. void     StartRubberBand();
  45. void     TrackRubberBand();
  46. void     EndRubberBand();
  47. void     CreateXorGC();
  48. void     InitBuffer();
  49. void     BufferPoint();
  50. void     FlushBuffer();
  51. int         compjulia();
  52. int         compmandel();
  53.  
  54. points_t Points;
  55. image_data_t rubber_data;
  56.  
  57. PFI func;
  58. PFI Funcs[2] = { compjulia, compmandel };
  59.  
  60. GC Data_GC[MAXCOLOR], RubberGC;
  61.  
  62. int Aflag=0, Bflag=0, aflag=0, bflag=0, wflag=0, hflag=0, Rflag=0, second=0;
  63. int maxcolor=256, startcolor=17, color_offset=96, delay=0;
  64. int width=512, height=384, res=1, kmax=256, M=100;
  65. int symetrical, w2, h2, rem;
  66. double center_x = 0.0, center_y = 0.0, p=0.32, q=0.043;
  67. double    min_a=-1.5, min_b=-1.5, a_range=3.0, b_range=3.0;
  68. double  max_a=1.5, max_b=1.5;
  69. double  a_inc, b_inc, a, b;
  70. double xper=0.0, yper=0.0, delta=0.01;
  71. int    numcolors=16, numfreecols, displayplanes, lowrange;
  72. xy_t    point;
  73. Pixmap  pixmap;
  74. Colormap cmap;
  75. XColor    Colors[MAXCOLOR];
  76. int  *exponents[MAXFRAMES];
  77. double  a_minimums[MAXFRAMES], b_minimums[MAXFRAMES];
  78. double  a_maximums[MAXFRAMES], b_maximums[MAXFRAMES];
  79. double prob=0.5;
  80. int  mincnt, maxcnt; 
  81. int     expind[MAXFRAMES]={0}, resized[MAXFRAMES]={0};
  82. int    numwheels=0, negative=1, logindex=1;
  83. int     nostart=1, stripe_interval=7;
  84. int    save=1, show=0, spinlength=256, savefile=0, restfile=0, storefile=0;
  85. int    maxframe=0, frame=0, dorecalc=0, run=1, demo=0;
  86. char    *savname="julia.sav";
  87. char    *outname="julia.out";
  88. char    *inname="julia.sav";
  89. char *path;
  90.