ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Gavin via ntg-context <ntg-context@ntg.nl>
To: Hans Hagen <j.hagen@xs4all.nl>
Cc: Gavin <gavinpublic@comcast.net>,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Solved: Making metafun pictures fainter
Date: Tue, 12 Oct 2021 06:33:46 -0600	[thread overview]
Message-ID: <2E5DF165-0F11-4ADC-B008-78F62ECC63A5@comcast.net> (raw)
In-Reply-To: <625f7a21-70ab-6153-d981-6efa2040bd34@xs4all.nl>


[-- Attachment #1.1: Type: text/plain, Size: 1243 bytes --]

Hi List,

Thanks, Hans, for your suggestion. In the end, I decided that I actually liked the silhouettes better than a faint version of the whole picture. Silhouettes clearly show the motion, but are far less visually distracting. In the figure below, the projectile motion’s are clear, including the cow’s constant angular velocity, but the final state still pops out.


I used “redecorated" to get the pictures with light, solid grays. Below is code for producing just the ball, if anyone wants to see the details. It includes a simple “shadow" macro that produces a shadow of any picture with an adjustable gray.

I’m having lots of metafun!
Gavin


\startMPinclusions
 picture ball;
 ball := image(
   fill fullcircle scaled 1cm
     withshademethod "circular"
     withshadecenter (.25,.25)
     withshadecolors (.8white, black);
   draw fullcircle scaled 1cm withpen pencircle scaled 0.8pt ;);
 vardef shadow(expr p, t) = 
   draw redecorated (draw p) withcolor t[background,0.8background];
 enddef; 
\stopMPinclusions

\startMPpage
 pair p;
 for i=0 upto 10:
   p := (i*cm/10, -((i-7.33)**2)*cm/7);
   shadow(ball shifted p, (i+1)/10) ;
 endfor
 draw ball shifted(1.1cm, -1.92cm) ;
\stopMPpage

[-- Attachment #1.2.1: Type: text/html, Size: 1120 bytes --]

[-- Attachment #1.2.2: Gracht.pdf --]
[-- Type: application/pdf, Size: 59371 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 2101 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2021-10-12 12:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-11  4:30 Making metafun pictures fainter (shading, uncolored clash) Gavin via ntg-context
2021-10-11  8:53 ` Hans Hagen via ntg-context
2021-10-11 15:49   ` Solved: Making metafun pictures fainter Gavin via ntg-context
2021-10-12 12:33   ` Gavin via ntg-context [this message]

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

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

  git send-email \
    --in-reply-to=2E5DF165-0F11-4ADC-B008-78F62ECC63A5@comcast.net \
    --to=ntg-context@ntg.nl \
    --cc=gavinpublic@comcast.net \
    --cc=j.hagen@xs4all.nl \
    /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 NNTP newsgroup(s).