noc-book-2 icon indicating copy to clipboard operation
noc-book-2 copied to clipboard

Create p5 sketches for figures I.2, I.3, I.5, I.6

Open shiffman opened this issue 1 year ago • 7 comments

@zee-em do you think it makes sense to draw these or should I just regenerate them with p5?

Screen Shot 2022-10-11 at 1 47 04 PM

shiffman avatar Oct 11 '22 17:10 shiffman

Is there a reason they were generated as sketches, like would people be creating that output themselves to test in p5, and this is an example of what to expect?

If not, I would say let's do them as illustrations for consistency's sake.

BTW it seems like there's an opportunity to add a fun monkey illustration in this section, with tall and short monkeys... Maybe a New York City street scene made up of monkeys of varying heights... just a thought...

zee-em avatar Oct 11 '22 19:10 zee-em

It's nice to have the accompanying code as an extra resource for these illustrations (and that's probably why I did them this way in the first place) but there's really no reason to have them be screenshots since they are static diagrams. (In a future iteration of the book I could imagine an interactive diagram where you get to play around with sliders.) I think I would opt for drawn (and I love the idea of monkeys! Or cats! Or chickens! 😂)

There's another similar spot later in the intro that looks like this:

Screen Shot 2022-10-11 at 8 43 30 PM

I do mention the accompanying code, but these could be drawn as well? Maybe you would even want to trace them? Or is that silly?

@jasongao97 do we have a way of embedding a p5 sketch with link to the web editor if it's not an example? B/c that's another option that would be a reason to have them be p5 canvases rather than illustrations?

shiffman avatar Oct 12 '22 00:10 shiffman

Sure! Here is one already. (2D Perlin noise) Embedded sketches are now represented just by a bookmark in notion so they can be anywhere.

image

jasongao97 avatar Oct 12 '22 02:10 jasongao97

Ah, thanks @jasongao97! @zee-em let's hold off on illustrating these and I'll first try embedding them as p5 sketches. But I do like the idea of the monkey illustration to help explain so feel free to try out ideas there!

@jasongao97 I'm loathe to add features which in turn add complexity but it does occur to me that in the reset pause bar we could consider a mechanism for adding a slider that controls a variable from the sketch? Maybe file this as an idea for later?

Let's leave this open and I'll re-title to indicate that i need to add the p5 sketches as bookmarks.

shiffman avatar Oct 12 '22 12:10 shiffman

got it- no illos for these two :)

zee-em avatar Oct 12 '22 13:10 zee-em

As @jasongao97 and I just discussed in our meeting, the only additional feature we need is adding the support for a caption #165. I'm working on these today, @zee-em I combined I.2 and I.3 into one so I ended up renumbering the illustrations in this chapter in case that affects your file management. The new numbers are updated in Notion.

shiffman avatar Nov 16 '22 16:11 shiffman

These are all now p5 sketches in the Introduction. I also replaced a screenshot for Exercise I.10 with a p5 sketch. The only thing that is a little too bad about this approach is I can't see the sketch itself in notion, but this is a tiny thing as I always click on it and run the sketch.

For each of these I've uploaded screenshot.png to the p5 sketch for the print version.

Screen Shot 2022-11-16 at 2 34 54 PM

@jasongao97 I'm re-assigning this issue to you. Once #165 is resolved and the intro chapter builds correctly, it can be closed.

shiffman avatar Nov 16 '22 19:11 shiffman