This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: (kawa pictures) square-limit pictures
- From: Per Bothner <per at bothner dot com>
- To: Sudarshan S Chawathe <chaw at eip10 dot org>
- Cc: kawa <kawa at sourceware dot org>
- Date: Sun, 30 Oct 2016 12:10:28 -0700
- Subject: Re: (kawa pictures) square-limit pictures
- Authentication-results: sourceware.org; auth=none
- References: <9603.1477853671@vereq.eip10.org>
On 10/30/2016 11:54 AM, Sudarshan S Chawathe wrote:
An issue related (I think) to the choice of names is how closely the
library follows the original SICP pictures language v. how closely it
tries to match Kawa's composable pictures style. Here I am thinking
about, for instance, the implementation of "below" using SICP's explicit
notion of painting into frames (and frame transformations) v. using
Kawa's re-center and vbox. When I first started writing the
square-limit example, I went with the first option, but then decided
that is probably not in the spirit of the Kawa pictures library. There
is probably value in having both methods.
I've considered adding a procedure to help bridge the SICP
model and the Kawa model. Something like:
(transform-to RECT PICTURE)
This would be equivalent to some (with-transform TRANSFORM PICTURE)
such that the bounds of the result matches RECT.
More generally RECT could be a parallelogram. (Note a rotated rectangle is
a parallelogram but is not considered a rectangle.) In that case the
bounds of the transform would not match RECT, but would have the
same bounds as RECT.
The RECT corresponds to the "frame" of SICP.
--
--Per Bothner
per@bothner.com http://per.bothner.com/