1
0
Fork 0

Set background color in satid

spacecruft
Jeff Moe 2022-08-20 16:08:05 -06:00
parent 29d538553f
commit 905e7eca2f
2 changed files with 9 additions and 0 deletions

View File

@ -61,3 +61,7 @@ for i in cpgimag
&& echo "A function for $i isn't fully implemented in Giza"
done
echo -e" Maybe add for pgplot color compatibility, around giza_set_font:\ngiza_set_colour_palette (1);"
echo -e "For black background, after giza_open_device_size_float\ngiza_set_colour_representation_float (0, 0.0, 0.0, 0.0);\ngiza_draw_background ();\n\n"

View File

@ -313,12 +313,17 @@ main (int argc, char *argv[])
if (argc == 3) {
giza_open_device_size_float ("/png", "satid", 680, 680, 3);
giza_set_colour_palette (1);
giza_set_font ("Helvetica");
giza_set_colour_representation_float (0, 0.0, 0.0, 0.0);
giza_draw_background ();
}
else {
giza_open_device_size_float ("/xs", "satid", 680, 680, 3);
giza_set_colour_palette (1);
giza_set_font ("Helvetica");
giza_set_colour_representation_float (0, 0.0, 0.0, 0.0);
giza_draw_background ();
}
giza_set_viewport_float (0.1, 0.95, 0.1, 0.8);