This repository is to save and keep tracking of my processing examples. Here are some examples made in simulation of natural systems class, and also creative work made it by me.
This is how we install the github examples in this repository. This are the following steps:
- Click the green button 'Clone or download' in the right side of the window.
- Copy the link https://github.com/dnnxl/Processing-Notebook.git or click download in the button.
- And download the examples packages using the link.
- Processing software version 3.0.0 or greater
- Processing libraries needed: PeasyCam, ControlP5, Box 2D and GifMaker(not necessarily).
Here are some examples of processing small projects. Also some homeworks and practices made it in the simulation of natural systems.
- First create a class agent, then a system of agents(is represented as an arraylist of agents) of 10000 agents.
- In a random position in x and y dependent on the width and height of the window.
- Each agent has a initial velocity in a random 2D vector, with a coefficient of 0.01.
- SPACE To start the simulation it has to touch the space in the keyboard and you will see the simulation start.
- It applies force of 0.09 to each draw method called, it is divided in four cuadrant.
- First create a class agent, then a system of agents(is represented as an arraylist of agents) of 10000 agents.
- In a random position in x and y dependent on the width and height of the window.
- Each agent has a initial velocity in a random 2D vector, with a coefficient of 0.01.
- SPACE To start the simulation it has to touch the space in the keyboard and you will see the simulation start.
- It applies force of 0.09 to each draw method called, it is divided in four cuadrant it is different from Agent Circle.
- First create a class agent, then a system of agents(is represented as an arraylist of agents) of 100 agents.
- Each agent has a initial velocity in a random 2D vector, with a coefficient of 1 and also has a gravity of 0.01 in the axis y.
- Each agent is moved by the mouse provoking an angular movement.
- One description: Automaton
- Using loadPixels and updatePixels.
- Apply the noise function to update the color of each pixels in the window.
- First create a class Ball, then a system of Ball(is represented as an arraylist of balls).
- Each ball is created by the mouse pressed taking the x and y of the mouse location.
- Using loadPixels and updatePixels.
- Update the color of each pixels in the window using the random function.
- Create a class agent and cannon.
- The cannon is moved by the mouse X and Y position.
- The shooting method is controlled by the click of the mouse.
- Using library Box 2D.
- Circle agents in a space.
- Create a class of agent and also for the system of agents. Each agent has a mass depending on his size. Use gravity force to drag them.
- W Apply force to up.
- A Apply force to left.
- S Apply force to down.
- D Apply force to right.
- Class agent and system.
- Each draw method create a new circle in the system along the old circle created.
- Class sphere and system.
- Each draw method create a new sphere in the system along the old sphere created.
- System of agents and a class agent.
- While the mouse is pressed it creates a new RandomWalker.
- Class agent and agentSystem. 3D simulation.
- The agents is contained in a big box. Has a gravity force.
- There is a total of eight cuadrant, which each cuadrant applies a force of 0.12.
- Class agent and system of agents.
- Using the drag force, simulating the water and the air space.
- Each agent is created by the mouse pressed.
- A box with agents inside, applies a force in the following directions and the agents get oit of the box.
- W Apply force to up.
- A Apply force to left.
- S Apply force to down.
- D Apply force to right.
- Classes agent, flowfield and spring.
- Each flowfield show the path where the agents show move and also apply a vector force.
- Classes agent, flowfield and spring.
- Each flowfield show the path where the agents show move and also apply a vector force.
- Class agent and system of agents.
- Using attract and repeler force to each each, there is two agent with this kind of force, represented by white.
- Class agent and system of agents.
- Using friction force.
- W Apply force to up.
- A Apply force to left.
- S Apply force to down.
- D Apply force to right.
- Class circle and system of circles.
- The size of the circle is generate by the random Gayssian.
- Each circle is created by the event of a mouse pressed.
- Class agent and system of agents in 3D.
- Using attract and repeler force to each each, there is two agent with this kind of force, represented by white.
- Class agent and spring.
- Using spring force.
- Creating a graphic using noise function.
- Generating terrain using the triangle strip and noise function.
- Class agent and system.
- Total of 1000 agents.
- All the agents chase the mouse position.
- Using library Box 2D.
- Polygon agents in a space.
- Class agent and system of agents.
- Generate random agents using gaussian function.
- Generate colorful square in random positions.
- Rectangule bounds against the borders of the window.
- Class Agent.
- Rectangule bounds against the borders of the window.
- Class Agent.
- Draw a route for the agents to follow.
- Each agent follow the behind agent.
- Create a background using pixels and noise function.
- Take a image and generate random points to colour the image.
Danny Xie Li Engineering student in computer science