[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNU ELPA] Svg version 1.1
From: |
ELPA update |
Subject: |
[GNU ELPA] Svg version 1.1 |
Date: |
Sun, 31 Mar 2024 05:57:52 -0400 |
Version 1.1 of package Svg has just been released in GNU ELPA.
You can now find it in M-x list-packages RET.
Svg describes itself as:
============================
SVG image creation functions
============================
More at https://elpa.gnu.org/packages/svg.html
## Summary:
This package allows creating SVG images in Emacs. SVG images are
vector-based XML files, really, so you could create them directly
as XML. However, that's really tedious, as there are some fiddly
bits.
In addition, the `svg-insert-image' function allows inserting an
SVG image into a buffer that's updated "on the fly" as you
add/alter elements to the image, which is useful when composing the
images.
Here are some usage examples:
Create the base image structure, add a gradient spec, and insert it
into the buffer:
(setq svg (svg-create 800 800 :stroke "orange" :stroke-width 5))
(svg-gradient svg "gradient" 'linear '((0 . "red") (100 . "blue")))
(save-excursion (goto-char (point-max)) (svg-insert-image svg))
Then add various elements to the structure:
## Recent NEWS:
[Not provided 🙁]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNU ELPA] Svg version 1.1,
ELPA update <=