how to change transparency of svg files in jit.mgraphics

Xavier van Wersch's icon

Hi,

is there any way to do this? I've

svgSegments.zip
application/zip 7.00 KB
files needed

been searching the forum and the tutorials but I can't figure it out...

I'm building a super-size seven segment display, see patch below. The digit is composed of seven individual svg files as I figured it would be a lot easier to draw them in Inkscape after the experiments I've done with jit.LCD in good old Max5.

I need to be able to fade the individual segments in and out, only got as far as turning them on or off. As a workaround I tried composing a digit of seven different instances of jit.mgraphic that are each passed through a jit.op multiplier and then added together but that's like killing a fly with an atom bomb... The final image needs to be 4 digits, at a 2560 x 1080 resolution, CPU won't like it a bit...

Xavier van Wersch's icon

here are the patches:

Max Patch
Copy patch and select New From Clipboard in Max.

Max Patch
Copy patch and select New From Clipboard in Max.

Rob Ramirez's icon

looks like you need to use JSUI for this. search the reference browser for "Mgraphics Quick start" and then scroll to the bottom to the section "MGraphics SVG Routines"

Xavier van Wersch's icon

I've had a look at "Mgraphics Quick Start" several times but I can't find that section. The only time SVG is mentioned is under "Image and Surface Routines" and all it says there is :

svg_render(filename);

Render an SVG file into the current user context.