unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Christopher Lemmer Webber <cwebber@dustycloud.org>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: Simple picture language
Date: Mon, 26 Mar 2018 20:18:54 -0500	[thread overview]
Message-ID: <87h8p2xqm9.fsf@dustycloud.org> (raw)
In-Reply-To: <87370mh5es.fsf@elephly.net>

Hey Ricardo!  Super cool that you were able to get this working so fast!
:)  I look forward to trying it when I get some spare cycles to breathe.


Ricardo Wurmus writes:

> Hi Guilers,
>
> I wrote a simple SVG-based picture language.  To try it:
>
>     wget https://elephly.net/downies/pict.scm
>
> Then start geiser in Emacs and load the module:
>
>     M-x run-guile
>     (add-to-load-path (getcwd))
>     ,use (pict)
>
> Let’s play!
>
>     (circle 100)
>     (colorize (circle 100) "red")
>
>     ,use (srfi srfi-1)
>     ,use (srfi srfi-26)
>     (apply hc-append (map (cut circle <>) (iota 10 2 4)))
>
>     (apply cc-superimpose (map (cut circle <>) (iota 10 2 4)))
>
>     (apply hc-append (map (cut rotate (rectangle 10 30) <>) (iota 36 0 10)))
>
>     (apply cc-superimpose (map (cut rotate (triangle 100 300) <>) (iota 36 0 10)))
>
> And so on.
>
> There’s also “blur”, but it doesn’t show up right in Geiser; it seems
> that Emacs doesn’t render SVG filters.
>
> What do you think?



  reply	other threads:[~2018-03-27  1:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-26 21:51 Simple picture language Ricardo Wurmus
2018-03-27  1:18 ` Christopher Lemmer Webber [this message]
2018-03-27 12:40 ` Thompson, David
2018-03-27 12:47   ` Matt Wette
2018-03-31 20:51     ` Neil Jerram
2018-04-01 21:04 ` tomas
2018-04-06 11:58 ` Hugo Hörnquist
2018-04-07 10:00 ` Ricardo Wurmus
2018-04-14 17:14 ` Alex Kost

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

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h8p2xqm9.fsf@dustycloud.org \
    --to=cwebber@dustycloud.org \
    --cc=guile-devel@gnu.org \
    --cc=rekado@elephly.net \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).