From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: emacs-devel@gnu.org
Subject: Re: [elpa] master 616a10b: Add svg.el, a package for creating SVG images
Date: Sun, 30 Nov 2014 23:03:52 -0500 [thread overview]
Message-ID: <jwvvblwxbhw.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <E1XvCyi-0003dt-Tz@vcs.savannah.gnu.org> (Lars Ingebrigtsen's message of "Sun, 30 Nov 2014 22:28:29 +0000")
> +The svg package allows creating SVG images in Emacs.
> +
> +(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))
> +(svg-rectangle svg 100 100 500 500 :gradient "gradient" :id "rec1")
> +(svg-circle svg 500 500 100 :id "circle1")
> +(svg-ellipse svg 100 100 50 90 :stroke "red" :id "ellipse1")
> +(svg-line svg 100 190 50 100 :id "line1" :stroke "yellow")
> +(svg-polyline svg '((200 . 100) (500 . 450) (80 . 100))
> + :stroke "green" :id "poly1")
> +(svg-polygon svg '((100 . 100) (200 . 150) (150 . 90))
> + :stroke "blue" :fill "red" :id "gon1")
Better move this to the "Commentary:" section (and remove the README file).
Stefan
next parent reply other threads:[~2014-12-01 4:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20141130222828.13967.53276@vcs.savannah.gnu.org>
[not found] ` <E1XvCyi-0003dt-Tz@vcs.savannah.gnu.org>
2014-12-01 4:03 ` Stefan Monnier [this message]
2014-12-01 16:36 ` [elpa] master 616a10b: Add svg.el, a package for creating SVG images Lars Magne Ingebrigtsen
2014-12-01 20:00 ` Stefan Monnier
2014-12-01 20:03 ` Lars Magne Ingebrigtsen
2014-12-01 23:43 ` Stephen Leake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvvblwxbhw.fsf-monnier+emacsdiffs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.