5.1: Boolean Expressions – Processing Tutorial

[ad_1]
This video covers the very basics of a conditional statement and a boolean expression.

Support this channel on Patreon:

Contact:

Send me your questions and coding challenges!:

Link to code on Github:

Processing:
Processing Foundation:
Learning Processing Book:

For More Processing Tutorials:


Posted

in

by

Tags:

Comments

20 responses to “5.1: Boolean Expressions – Processing Tutorial”

  1. Robie Calong Avatar

    Watching your tutorial videos for learning processing has been a great experience. I appreciate that you give coding examples through a visual context, as I myself is more of a visual learner.

  2. Ivans Guks Avatar

    hello, thank you so much for this opportunity you have given many people to learn programming, you are very fun to watch and I just wish you were my every teacher :D. I have decided a couple of years ago that Im gonna learn programming when I go to a university after school, but i never actually realized what it actually was, still got 2 years of school left, and i hope ill be a great programmer thanks to you before i even graduate ^^. Your explanation is great and u are very fun to watch. i will probably have some question in the future videos i watch, and hopefully i will get the answers somehow :). anyways thanks again, BIG fan of your vids so far.
    PS i guess people never do download your videos and edit them for u xDDD

  3. Paul Costanza Avatar

    float circleX;

    void setup() {
    size(640,360);
    circleX = height/2;
    }

    void draw() {
    background(50);
    //Drawing stuff
    fill(255);
    stroke(255);
    ellipse(circleX,180,40,40);

    //Logic
    circleX += 3;

    if(circleX > 660) {
    circleX = -20;
    }

    }

  4. Oyesigye Davin Avatar

    I think 7 is greater than 7! but hey am not a computer.. HAHA!

  5. Java Coder Avatar

    void setup() {
    size(640, 360);
    }
    void draw() {
    background(50);
    fill (0, 255, 0);
    ellipse(mx, 180, 24, 24);
    mx = mx + 5;
    if (mx > 640) {
    mx = 1;
    }
    }

  6. BROOKLYN STOCKTON Avatar

    your video was really helpful thank you!!

  7. 5,000 SUBS NO VIDEOS Avatar

    AGAIN AMAZING VIDEO DUDE
    KEEP GOING
    THE CODE FROM THE LAST FEW SECONDS WHICH WERE TASK
    float circleX=0;
    void setup()
    {
    size(640,360);
    }
    void draw()
    {
    background(50);
    fill(225);
    ellipse(circleX,180,24,24);
    circleX=circleX+1;
    if(circleX>=640)
    {
    circleX=0;
    }
    }

  8. cybil israni Avatar

    know my concept is clear thnx

  9. Javeg Jajaja Avatar

    can you please help me, i need to write an if statement for my values.

    for example im doing my project i am controlling values through a sensor the values change based on how hard i blow the sensor now all i have to do is add a if statement that if the value goes over 15 for example then it should play this video if it does not move from 15 dont do anyhting please help me

  10. Elisa Gonzalez Avatar

    them pesky squeaky pens…

  11. CRISIS Avatar

    I´m been trying to learn how to code for a long time without any succes until now.
    Thanks a lot, Daniel!!!! you are a great great teacher!!

  12. Franco Avatar

    Nice video dude! 😉

  13. Zero SSOX Avatar

    Can I ask a question here? I'm currently working on a project that uses ReActivision

    and I've written a code that if I scan pattern A, I get video A
    if I scan pattern B, I get video B

    but if I scan pattern A and B at the same time, they both play simultaneously

    what I plan to do is scanning pattern A and B at the same time can result in playing a 3rd video

    in short, how should I implement statement that requires 2/multiple "true" checks (both id 1 and id 2 present at the same time) before it works?

    this one is for separate:

    if ( tobj.getSymbolID() == 1) {
    theMov.play();
    player1.play();
    println("Play");
    }

    if ( tobj.getSymbolID() == 2) {
    theMov2.play();
    player2.play();
    println("Play");
    }

  14. J Maelstrm Avatar

    Thanks for the videos once again. I'm just happy that I've been able to keep up. This is fun. I cant wait till i get much better; i know its a long ways to go… but I'm persistent.

    Can you do a tutorial on how to make programs into videos?

  15. Haleem ul Hassan Avatar

    Thank you so much Mr Daniel. Im just learning processing because i need it as a design student for my senior project which has interactive elements. Im already in the middle of the semester and your videos are giving me an amazing jumpstart to deal with this world of programming. You explain stuff brilliantly, keep it entertaining ALL the time, and constantly challenge your viewers and their imagination as well. You have perfected the art of teaching! 😀 Big fan here, keep up the great work 🙂

  16. Javier Martínez de Velasco Avatar

    You made it!!!! I started programming with Processing3. Also the videos you have at http://www.processing.org are wonderful.
    Great teacher!!
    Thanks a lot, Daniel!!!! You are the boss!!!!!!

    I've seen so many videos of you that I can just address you by Daniel and not Mr. Shiffman! hahaha We are buddies now.

    Thanks a lot, for real.

  17. Valentina Ambrosi Avatar

    you're lovely! I've almost started to like coding. clear, simple and entertaining explanations, thank u!

  18. Julian Santos Avatar

    thanks for your videos they are very helpful and extremely entertaining.

  19. Konur Ozcan Avatar

    your videos are great keep them up please, saving my grade in university !

  20. toxa motoxa Avatar

    float x=0;
    void setup () {
    size(640,360);
    }
    void draw () {
    background(255);
    fill(255,0,0);
    ellipse(x,180,30,30);
    x=x+1;
    if(x>width-1) {
    x=0;
    }
    }

Leave a Reply

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