From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Christopher Lemmer Webber Newsgroups: gmane.lisp.guile.devel Subject: Re: Simple picture language Date: Mon, 26 Mar 2018 20:18:54 -0500 Message-ID: <87h8p2xqm9.fsf@dustycloud.org> References: <87370mh5es.fsf@elephly.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1522113427 12496 195.159.176.226 (27 Mar 2018 01:17:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Mar 2018 01:17:07 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 25.3.1 Cc: guile-devel To: Ricardo Wurmus Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Mar 27 03:17:03 2018 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0dEU-00037n-Eg for guile-devel@m.gmane.org; Tue, 27 Mar 2018 03:17:02 +0200 Original-Received: from localhost ([::1]:59791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0dGX-0000iU-MS for guile-devel@m.gmane.org; Mon, 26 Mar 2018 21:19:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0dGK-0000iL-57 for guile-devel@gnu.org; Mon, 26 Mar 2018 21:18:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0dGI-00061r-Rv for guile-devel@gnu.org; Mon, 26 Mar 2018 21:18:56 -0400 Original-Received: from dustycloud.org ([2600:3c02::f03c:91ff:feae:cb51]:59986) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f0dGI-00061H-NA for guile-devel@gnu.org; Mon, 26 Mar 2018 21:18:54 -0400 Original-Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 5B5F826653; Mon, 26 Mar 2018 21:18:53 -0400 (EDT) In-reply-to: <87370mh5es.fsf@elephly.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c02::f03c:91ff:feae:cb51 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19502 Archived-At: 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=E2=80=99s 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=E2=80=99s also =E2=80=9Cblur=E2=80=9D, but it doesn=E2=80=99t sho= w up right in Geiser; it seems > that Emacs doesn=E2=80=99t render SVG filters. > > What do you think?