Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change p5 video resolution in examples #152

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

ziyuan-linn
Copy link
Member

This PR changes the p5 video resolution in the example sketches. The video size is now set to a fixed value instead of inheriting the canvas size. Thank you @MOQN for the suggestion.

Orignal:

video = createCapture(VIDEO);
video.size(width, height);

New:

video = createCapture(VIDEO);
video.size(640, 480);

@ziyuan-linn ziyuan-linn changed the title change video resolution change p5 video resolution in examples Jun 21, 2024
@shiffman shiffman merged commit fc1b156 into main Jun 21, 2024
@ziyuan-linn ziyuan-linn deleted the change-example-video-resolution branch July 3, 2024 18:30
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