From 7d0927d652b78001febacd770a069c811bd4e6d0 Mon Sep 17 00:00:00 2001 From: eugene Date: Thu, 25 Nov 2021 20:12:59 +0100 Subject: [PATCH] Produce 1080p tiff files --- drop_billiard.c | 5 ++--- sub_part_billiard.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drop_billiard.c b/drop_billiard.c index 063da7d..6aff75c 100644 --- a/drop_billiard.c +++ b/drop_billiard.c @@ -8,7 +8,8 @@ /* line to nils.berglund@univ-orleans.fr - Thanks! */ /* */ /* compile with */ -/* gcc -o drop_billiard drop_billiard.c -O3 -L/usr/X11R6/lib -ltiff -lm -lGL -lGLU -lX11 -lXmu -lglut */ +/* gcc -o drop_billiard drop_billiard.c */ +/* -O3 -L/usr/X11R6/lib -ltiff -lm -lGL -lGLU -lX11 -lXmu -lglut */ /* */ /* */ /* To make a video, set MOVIE to 1 and create subfolder tif_drop */ @@ -116,9 +117,7 @@ #define BLACK 1 /* set to 1 for black background */ #define COLOR_OUTSIDE 1 /* set to 1 for colored outside */ -// #define COLOR_OUTSIDE 0 /* _eux */ #define OUTER_COLOR 300.0 /* color outside billiard */ -// #define OUTER_COLOR 0.0 //_eux #define PAINT_INT 0 /* set to 1 to paint interior in other color (for polygon) */ #define PAINT_EXT 1 /* set to 1 to paint exterior of billiard */ diff --git a/sub_part_billiard.c b/sub_part_billiard.c index f501a3d..dc1ce36 100644 --- a/sub_part_billiard.c +++ b/sub_part_billiard.c @@ -190,7 +190,7 @@ void save_frame() strcat(n2, ".tif"); printf(" saving frame %s \n",n2); - // mod by eux - chose on of the following according to the comment beside. + // mod by eux - chose one of the following according to the comment beside. writetiff(n2, "Billiard in an ellipse", 0, 0, WINWIDTH, WINHEIGHT-40, COMPRESSION_LZW); /* to use with 1080p in drop_billiard.c- probably the best because it's generating 1080p image, lighter, and then cropping those 40 pixels to avoid the strange band*/