Skip to content

Adding tutorial for 2.x transition for middle school and high school teachers.#1458

Merged
ksen0 merged 6 commits into
mainfrom
2x-transition
Jul 16, 2026
Merged

Adding tutorial for 2.x transition for middle school and high school teachers.#1458
ksen0 merged 6 commits into
mainfrom
2x-transition

Conversation

@ksen0

@ksen0 ksen0 commented Jun 19, 2026

Copy link
Copy Markdown
Member

Based on the document Adrienne Gifford has prepared.

Remains to be done:

  • Updated version management in editor screenshots
  • Screenshot for the compatibility addons in editor
  • What should be the image for the tutorial? As a placeholder' I've used a screenshot of the "quick teacher reference" table at the end. Though this could also be improved as the header alignment doesn't quite work.
image image image image

fix: preserve locale casing in content collection entry IDs after Ast… [2.0]
@xinemata

Copy link
Copy Markdown

Great work! This is nitpicky, but there are multiple ways p5.js version 2 is being referred to now across p5js.org and @p5xjs on instagram: p5.js 2.0, p5.js 2.x, p5.js v2. Based on latest discussion amongst Processing Foundation's core team, should we universally call it p5.js v2?

@ksen0

ksen0 commented Jul 15, 2026

Copy link
Copy Markdown
Member Author

After feedback in Discord, I've normalized using "p5.js v2" as the convention. I've also made the quick reference for async/await not have the awkward line breaks anymore, and used "cat.jpg" throughout (also to reduce line length and prevent wrapping).

Before

image

After

image

Featured image animation of the important concepts

Screen.Recording.2026-07-15.at.23.02.07.mov

Animation is in this sketch (edits welcome, though I know it's messy, sorry); and the easing function is from Dave's tutorial. Uncomment line 78 to export a prfect loop, then animate with ffmpeg:

mkdir -p sorted
n=0
for f in $(ls frame-*.png | sort -V); do
  printf -v name "sorted/frame-%04d.png" "$n"
  cp "$f" "$name"
  n=$((n+1))
done
ffmpeg -framerate 15 -i sorted/frame-%04d.png -vf palettegen -frames:v 1 palette.png
ffmpeg -framerate 15 -i sorted/frame-%04d.png -i palette.png -lavfi paletteuse output.gif

(I was planning to also compress it, but it looks crisp now, I worry about legibility, and it's not bigger than many of the assets on the site already)

@ksen0
ksen0 marked this pull request as ready for review July 15, 2026 21:10
@ksen0

ksen0 commented Jul 16, 2026

Copy link
Copy Markdown
Member Author

Thanks to @SableRaf 's input, colors were adjusted to pass WCAG AAA contrast check on normal test and for the background of the animation to not be white, so it appears as an obvious block in the layout.

image

@ksen0
ksen0 merged commit a742a52 into main Jul 16, 2026
7 checks passed
@ksen0
ksen0 deleted the 2x-transition branch July 16, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants