[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make a drawing with Emacs
From: |
tomas |
Subject: |
Re: make a drawing with Emacs |
Date: |
Tue, 1 Sep 2020 10:22:03 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Sep 01, 2020 at 04:01:51AM +0700, Yuri Khan wrote:
> On Tue, 1 Sep 2020 at 03:54, Emanuel Berg via Users list for the GNU
> Emacs text editor <help-gnu-emacs@gnu.org> wrote:
>
> > I want to write code (data) and then have it
> > translate into a drawing. See the original post.
> > So no GUI, no actual "drawing". CAD doesn't sound
> > like that, but maybe I'm wrong?
>
> Hm, why not just write SVG?
I'd prefer writing Emacs lisp which writes SVG (actually I've dabbled
in that: much more fun!). Start about here:
(require 'svg)
(insert-image
(svg-image
(let ((svg (svg-create 100 100)))
(svg-circle svg 50 50 20 :stroke-width 6 :stroke 'blue :fill 'yellow)
svg)))
Of course, once you've got all the infrastructure for the drawings
of a tree house up and running, the tree might have grown out of
reach ;-)
Cheers
- t
signature.asc
Description: Digital signature
Re: make a drawing with Emacs, Emanuel Berg, 2020/09/01