From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13903 invoked from network); 19 Jul 2023 18:05:59 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 19 Jul 2023 18:05:59 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 32604482B08 for ; Wed, 19 Jul 2023 20:04:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X9WjKMqJ0XfL for ; Wed, 19 Jul 2023 20:04:07 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 427C4482B18 for ; Wed, 19 Jul 2023 20:03:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id AD24E4829CC for ; Wed, 19 Jul 2023 20:02:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 982JGNQ2aSx5 for ; Wed, 19 Jul 2023 20:02:45 +0200 (CEST) Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 70CE24829C6 for ; Wed, 19 Jul 2023 20:02:45 +0200 (CEST) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-5703d12ab9aso76530267b3.2 for ; Wed, 19 Jul 2023 11:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=capdm.com; s=google; t=1689789763; x=1692381763; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=OuuLQmwCmOGRJnk7wp4KO4BzdDituUw2gZi7md3zyNs=; b=xvDMEnME7CpplQ1PhvsikYNDcRZZMkT33HZub9r3qZOi8tIhFJVvpceUk8B3FEjH78 JNBbjbz8/1SjRoYIsdYSznWGNCKtDZ3s4v9PL97AqgyiU2Jl3VRCGx1hTtp9F+q45pPU 8/rAW7kyT5Qkpf66Fxd0SAq7dS/ZGjnsnVutc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689789763; x=1692381763; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OuuLQmwCmOGRJnk7wp4KO4BzdDituUw2gZi7md3zyNs=; b=UN6BiPLT6AzNekGDl25iP/0q+w+9qxy7kGVjgu+1kPA1MTeIYndQtf9N1UPCRmv8c+ N9ypzxbvVhF7I+t+hPWObTbNCfRXfNAr86KK49Qf3YwP0cBmCHPk7D4/a3fQMil0i2mr N0cUh14JzJoSRDnZhD9BZKXtUfsVfEDZQ5c2iDPiHQI3FmxtDxBeyvlejI2OKruZX85Y OvM8WXA8RBHpWMAr05Ae83qWbs36lcz62lDeddRRhEmRH6yY3bbYsfxkcXfINpCNbuOq ICbyxx/tKHMikglmQxFju+zGUmU9/G5qGg39qBS9ROSatVGpZWvaVWuM8i4dQGMfg/Ba xvKQ== X-Gm-Message-State: ABy/qLbrPzGWPsrjON5giq5OD/EWd8Ufu3tmPoPfv/MSY7K5zCanIoSA cAHTwyG2jgQIh2Bkuj8VZS2BlkNwjJlBH4mGyZPZONi2V7pRWmHxg+E= X-Google-Smtp-Source: APBJJlHS/tR3/r5hV/b8RUzGhYYIVkSrB4aL9v/ZzBKD1s/pswFUiOp3N7Srea9miEKfeiSkfgM+izwoeczmPFOZShw= X-Received: by 2002:a0d:de47:0:b0:55a:8c02:c00b with SMTP id h68-20020a0dde47000000b0055a8c02c00bmr3525886ywe.25.1689789763377; Wed, 19 Jul 2023 11:02:43 -0700 (PDT) MIME-Version: 1.0 References: <36b2de99-972e-fd30-b62c-82855424a789@fiee.net> <95C3DFDF-FF4F-422B-B588-6389144F8D0C@bittext.nl> <1f46b8cb-bacf-13c3-80b4-66752071b481@fiee.net> In-Reply-To: <1f46b8cb-bacf-13c3-80b4-66752071b481@fiee.net> From: Duncan Hothersall Date: Wed, 19 Jul 2023 19:02:26 +0100 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: WWU73ZL32PBFFC7KLX5IPWGBI62GDRR5 X-Message-ID-Hash: WWU73ZL32PBFFC7KLX5IPWGBI62GDRR5 X-MailFrom: dh@capdm.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: enhancing MetaPost presentation progress graphics List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============4306361657564077345==" --===============4306361657564077345== Content-Type: multipart/alternative; boundary="0000000000009772200600dad6e1" --0000000000009772200600dad6e1 Content-Type: text/plain; charset="UTF-8" I am in awe at this. Thanks for sharing. On Wed, 19 Jul 2023 at 18:11, Henning Hraban Ramm wrote: > Am 19.07.23 um 14:07 schrieb Taco Hoekwater: > > First, find the actual point along the curve of the wave you want, then > you can ask for the direction of the wave at that time, and its point: > > Thank you! > > > pair itime, iangle, boatpos; > > > > itime = (wave[3] intersectiontimes ((xpos,0)--(xpos,infinity))); > > iangle = direction (xpart itime) of wave[3]; > > boatpos = (point (xpart itime) of wave[3]) shifted (-5,0); % shift to > center horizontally > > There was still an error that I introduced: > The boat on the first page is already way in, while on the last page it > falls over the edge of the world. > > I fixed several other things and drew a nicer boat. Feel free to use it. > > Hraban > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___________________________________________________________________________________ --0000000000009772200600dad6e1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am in awe at this. Thanks for sharing.

On Wed, 19 Jul 202= 3 at 18:11, Henning Hraban Ramm <texml= @fiee.net> wrote:
Am 19.07.23 um 14:07 schrieb Taco Hoekwater:
> First, find the actual point along the curve of the wave you want, the= n you can ask for the direction of the wave at that time, and its point:
Thank you!

> pair itime, iangle, boatpos;
>
> itime =3D (wave[3] intersectiontimes ((xpos,0)--(xpos,infinity)));
> iangle =3D direction (xpart itime) of wave[3];
> boatpos =3D (point (xpart itime) of wave[3]) shifted (-5,0); % shift t= o center horizontally

There was still an error that I introduced:
The boat on the first page is already way in, while on the last page it falls over the edge of the world.

I fixed several other things and drew a nicer boat. Feel free to use it.
Hraban
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://www.ntg.nl/mailman/listinfo/= ntg-context
webpage=C2=A0 : https://www.pragma-ade.nl / http://context.aanhet.net
archive=C2=A0 :
https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: https://contextgarden.net
___________________________________________________________________________= ________
--0000000000009772200600dad6e1-- --===============4306361657564077345== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============4306361657564077345==--