p5.js Github Issue #1079

[ad_1]
In this video, I look at the behind the scenes of p5.js Github Issue #1079. Why when you call size() on a p5 video element, are the pixels not resized accordingly?

Issue 1079:
Related commit:
Issue 1274:
Related commit:

Contact:

Learn p5 basics:

Help us caption & translate this video!


Posted

in

by

Tags:

Comments

7 responses to “p5.js Github Issue #1079”

  1. Jarmahent Avatar

    Support coding rainbow hahaha, Yall probably make like 15x more money than I ever will. Most I can donate Is like $5 and not have to worry about me making it to my next pacheck.

  2. TheDarkSid3r Avatar

    Try changing !== this.elt.width to !== this.elt.videoWidth

  3. Viktor Strate Avatar

    I love your Github series

  4. Rafael Puyana Avatar

    Dan, you are the best.

  5. Ray Mairlot Avatar

    Your videos seem great. Will you be doing a follow-up video on this issue?

  6. Furrane Avatar

    Cool video, even though I feel I'll never be at the level to do a bug report haha ^^ On a completly different topic, I'm trying to do a twitter bot with node, that would take a pick from an image API and transform it with processing. My problem is i'm not able to actually retrieve the .json from the url. In p5.js you use loadJSON command but how do you do in "pure" javascript ? I tryied two different image API and their respective npm packages to have it already done for me but both throwed me errors. Can someone help me with this ? Maybe Daniel you could make a video about it ? :p

  7. David Fodor Avatar

    I might be wrong, but when you use size(320,240) the object height is the same as the the width (320,320) so:
    320*240*4: 307200 (length)
    320*320*4: 409600 (length)

    So the problem lays on the height which is not 240 as you say in the size call.

Leave a Reply

Your email address will not be published. Required fields are marked *