From: Michael Orlitzky Date: Thu, 16 Nov 2023 01:37:57 +0000 (-0500) Subject: include/svgtiny.h: add fill_opacity and stroke_opacity to svgtiny_shape X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=8e76cd125e02d4c0d09ad34eea8f46c0511704f0;p=libsvgtiny.git include/svgtiny.h: add fill_opacity and stroke_opacity to svgtiny_shape We already have fields for the fill and stroke opacity in the parser state, but we have no way to record those values in the shapes we're creating as we parse. Here we make room to do that. --- diff --git a/include/svgtiny.h b/include/svgtiny.h index d44e811..094d58f 100644 --- a/include/svgtiny.h +++ b/include/svgtiny.h @@ -28,7 +28,9 @@ struct svgtiny_shape { char *text; float text_x, text_y; svgtiny_colour fill; + float fill_opacity; /* Between 0.0 and 1.0 */ svgtiny_colour stroke; + float stroke_opacity; /* Between 0.0 and 1.0 */ int stroke_width; };