nature-of-code / noc-book-2

Nature of Code with p5.js and Notion workflow / build system.
https://natureofcode.com
820 stars 56 forks source link

5.6 and 5.7 #182

Closed shiffman closed 1 year ago

shiffman commented 1 year ago

For these two illustrations the label on the left should be "max speed" (not desired). This is showing that the desired is equal to max speed in 5.6, but that it is not in 5.7 (and instead the length is relative to the distance to target).

image

image

zee-em commented 1 year ago

would it make more sense for these illustrations to be stacked in each figure, so you can better compare the distances to the target, from max speed to desired?

is the leftmost illustration in each figure independent of the target, like just existing to show the max speed? are both vehicles in each figure the same vehicle, or different vehicles with different velocities in relation to the same target?

shiffman commented 1 year ago

Ah, yes, this might help!

is the leftmost illustration in each figure independent of the target, like just existing to show the max speed? are both vehicles in each figure the same vehicle, or different vehicles with different velocities in relation to the same target?

Correct, the idea here is to show how in 5.6 the desired velocity is always equal to max speed and in 5.7 it is not, but instead its length is calculated based on distance to the target. Both vehicles are the same so each diagram could work stacked and just having one vehicle.

shiffman commented 1 year ago

I think these might work best as half-width but related to #185 should we remove some padding around them? Or should we leave them full-width and centered?

Screen Shot 2023-01-18 at 9 07 28 AM

shiffman commented 1 year ago

We decided to merge these into one. It could be half width stacked or full width (probably half width)

zee-em commented 1 year ago

Updated- will upload later

zee-em commented 1 year ago

Completed.

shiffman commented 1 year ago

@zee-em Do you like how it looks with the layout? My only thought is maybe we need a little bit more space between the two? Or perhaps only the "max force" label and curly once? I'm not sure and happy also to leave it as is!

Screen Shot 2023-02-11 at 1 53 46 PM
shiffman commented 1 year ago

illustration looks great now with layout and caption.