emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [elpa] master 616a10b: Add svg.el, a package for creating SVG images


From: Stefan Monnier
Subject: Re: [elpa] master 616a10b: Add svg.el, a package for creating SVG images
Date: Sun, 30 Nov 2014 23:03:52 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> +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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]