7.3: Modularity with Functions - Processing Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 มิ.ย. 2024
  • This video shows how to divide a program into modular pieces with functions.
    (Note this video was shot in Fall 2012)
    Book: Learning Processing A Beginner's Guide to Programming, Images,Animation, and Interaction
    Chapter: 7
    Official book website: learningprocessing.com/
    Twitter: / shiffman
    github.com/shiffman/LearningP...
    📄 Code of Conduct: github.com/CodingTrain/Code-o...

ความคิดเห็น • 37

  • @saraons
    @saraons 5 ปีที่แล้ว +29

    To me ; you are a genius.

  • @jakubgalinski2135
    @jakubgalinski2135 2 ปีที่แล้ว +4

    I am learning JS, but your teaching and the fact you see things not only read thing is fantastic way of catching concepts of loops, functions...
    Thanks a lot!

  • @programminglanguage2945
    @programminglanguage2945 6 ปีที่แล้ว +6

    Best Explanation. Awesome super duper.

  • @reviabrasil79
    @reviabrasil79 4 ปีที่แล้ว +1

    Just watched your video. Very helpful!!! I have a lot fun and LMAO. Subscribed!!! Thx

  • @Doha3ris
    @Doha3ris 4 ปีที่แล้ว +4

    a week ago we started to learn algorithm with processing at school, you're video are so helpfull ! thanks for your work, you are amazing

  • @Otterwaffle
    @Otterwaffle 4 ปีที่แล้ว

    Every time code will be written, but never used, I will now imagine it chillin' in a forrest.

  • @junedickson1059
    @junedickson1059 5 ปีที่แล้ว +2

    Good job teaching stuff. ^_^

  • @pablocastaneda4021
    @pablocastaneda4021 3 ปีที่แล้ว

    This is a very good video

  • @lenlen625
    @lenlen625 8 ปีที่แล้ว +2

    Hello Daniel,
    I am using p5.js to do this example you taught. I want to add a block at the bottom, once the ball hits the block, it will bounce back. The block can be be moved by mouseX, if the block miss hitting the ball, the ball falls off the bottom, so it is like a game. And I also wants to do text "Score: ...", once the ball hits the block, it will get 1 mark. I have been struggling for the solution. Can you help me?

  • @parthodasporag9885
    @parthodasporag9885 ปีที่แล้ว

    Can you please say how can you make you and laptop screen both on your videos simultaneously ?

  • @gonzalo4658
    @gonzalo4658 4 ปีที่แล้ว

    you look like Pau Gasol NBA player too!

  • @marvicol
    @marvicol ปีที่แล้ว

    Whenever I define my functions and put the codes in there, nothing shows on the canvas, please what's the issue

  • @syedbaryalay5849
    @syedbaryalay5849 6 ปีที่แล้ว +5

    Watch and wait until 7:35 haha

  • @pratima445
    @pratima445 5 ปีที่แล้ว

    plz tell me header files names this is not executing showing lots of errors

  • @nikokushiro3681
    @nikokushiro3681 ปีที่แล้ว

    what are the header used?

  • @delaodino
    @delaodino 2 ปีที่แล้ว

    is hoisting functions bad practice?

  • @corrompido7680
    @corrompido7680 7 ปีที่แล้ว +3

    can you make a function that calls other functions?

    • @18bovende
      @18bovende 5 ปีที่แล้ว +1

      Isn't that the purpose of objects?

    • @wilhelm.reeves
      @wilhelm.reeves 5 ปีที่แล้ว +2

      Actually here, draw() function is already calling other functions like background(), dispplay() etc

  • @peshawabarznjii
    @peshawabarznjii 8 ปีที่แล้ว +8

    hhhh thank you :)

  • @kwiyumi
    @kwiyumi 2 ปีที่แล้ว +2

    here is some code for random bubbles
    void setup() {
    size(500, 500);
    }
    void draw() {
    randomBubbles();
    }
    void bubbles(float xPos, float yPos, float diam) {
    noFill();
    strokeWeight(random(1, 5));
    stroke(random(0, 255));
    ellipse(xPos, yPos, diam, diam);
    }
    void randomBubbles() {
    float x = random(0, width);
    float y = random(0, height);
    float d = random(0, 30);
    bubbles(x, y, d);
    }

    • @kwiyumi
      @kwiyumi 2 ปีที่แล้ว +1

      and thaaaaank you! Mr Shiffman, you are the best

    • @haithamalbadi2192
      @haithamalbadi2192 ปีที่แล้ว

      hello i love this codes, i tried it and its beautiful
      do you other codes that i can learn more?

  • @sillymesilly
    @sillymesilly 2 ปีที่แล้ว

    No to OOP. Yes to Modular

  • @drippinwet774
    @drippinwet774 3 ปีที่แล้ว

    set.Gunshot == *Skull

  • @filipinizedmusicvideos2474
    @filipinizedmusicvideos2474 ปีที่แล้ว

    No animals were hurt during the filming of this. hahaha

  • @18bovende
    @18bovende 5 ปีที่แล้ว +2

    6:09 Nice animated underarm hair

  • @mahdiarchin
    @mahdiarchin 3 ปีที่แล้ว

    5:47 :)

  • @rafyyd461
    @rafyyd461 ปีที่แล้ว

    i love u

  • @athotagunateja6023
    @athotagunateja6023 2 ปีที่แล้ว

    lol cool way of teaching

  • @filipinizedmusicvideos2474
    @filipinizedmusicvideos2474 ปีที่แล้ว

    i think you're cute :) heart heart

  • @jaylegoninjago5615
    @jaylegoninjago5615 4 ปีที่แล้ว

    I literally can just read code

  • @insightup8743
    @insightup8743 5 ปีที่แล้ว +3

    He smoke pot before making videos..