Skip to content

Conversation

@mngyuan
Copy link

@mngyuan mngyuan commented Nov 14, 2025

every is a library for managing time based events like scene transitions or repetitive tasks. It's partially inspired by 100.times do |n| from Ruby and helps chain time dependent drawing changes in p5. I've been using it in class with students as a way to ease into time-based media and using time in p5.js outside of looping or setTimeout.

There's some more information on how you use it in the README:

https://github.com/mngyuan/every/

Example sketch 1 Example sketch 2

@davepagurek
Copy link
Collaborator

Thanks for adding this, and nice work on the library! Just a heads up, on the website the thumbnails are 3:2 aspect ratio, so a 1500x1000 image would match that. Right now you've got a square 1500x1500, so it will get cropped on the site. Did you want to create a version matching the display aspect ratio?

@mngyuan
Copy link
Author

mngyuan commented Nov 17, 2025

Thanks! I'm happy with the way it looks on the site, I've built it locally and took a look. It's designed to be cutoff as it is (or rather it's a happy accident).

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