From eb56ff93ac9bbf6fd8ddb2cc6891ddfde8f1b56c Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 5 Apr 2017 16:22:30 +0200 Subject: Better config system --- attract.c | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/attract.c b/attract.c index 4526d0e..0ee39b6 100644 --- a/attract.c +++ b/attract.c @@ -46,6 +46,7 @@ static struct colour make_colour(double complex z){ struct config{ double unitsz; int width,height; + double midx,midy; double exponent; }; @@ -78,8 +79,8 @@ static void* thread_entry(void *arg_vp){ for(int iy=ystart;iy=2){ cfg.exponent=strtod(argv[1],NULL); } -- cgit v1.2.3