Package Information
- Last Updated
- Authors
- Alberto Corbi
1. Get the package
Download the package using the TPIX CLI:
tpix get @preview/svgalpha:0.0.12. Import in your Typst file
Add this to your .typ file:
#import "@preview/svgalpha:0.0.1": *SVGAlpha
This is a simple package adds a global alpha layer to an SVG image.
Example of usage:
#import "@preview/svgalpha:0.0.1": transparent-svg
#let img = read("carrot.svg", encoding: "utf8")
#transparent-svg(img, 0.290, width: 40%)
The requiered paramaters are the first two ones (image data and alpha value). The rest are passed as is to the #image function.