Coder Social home page Coder Social logo

2d-motion-in-p5's Introduction

Motion in p5

Today we are going to learn how to create animations in p5.js! Up to this point, besides when we using random(), we haven't been able to create motion on our screen. Today we are going to fix that!

Tasks

  1. CHALLENGE 1: Create 3 shapes and have them move from left to right across the screen. The shapes should have different speeds.

  1. Create 3 shapes and have them move from RIGHT to LEFT across the screen. The shapes should have different speeds.

  1. Create a shape that continuously moves across the screen. When the object reaches the other side of the screen, have it reappear on the left side of the screen.

  1. Have a shape move from the top of the screen to the bottom of the screen. REMEMBER: The down direction is POSITIVE

  1. Create a bouncing bubble. The circle should bounce back and forth between the two edges of the canvas BONUS: Have it change speed every time it hits the edge of the canvas.

  1. Create code that has your circle move back and forth from the upper left corner to the lower right corner.

2d-motion-in-p5's People

Contributors

stevenjlance avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.