Skip to content

This repository is to save and keep tracking of my processing examples.

Notifications You must be signed in to change notification settings

dnnxl/Processing-Notebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Processing Notebook

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.

Installation

This is how we install the github examples in this repository. This are the following steps:

Requirements

  • Processing software version 3.0.0 or greater
  • Processing libraries needed: PeasyCam, ControlP5, Box 2D and GifMaker(not necessarily).

Examples

Here are some examples of processing small projects. Also some homeworks and practices made it in the simulation of natural systems.

Agent Circle

  • 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.

alt-text

Agents floating

  • 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.

alt-text

Angular movement 2D

  • 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.

alt-text

Automaton

  • One description: Automaton

alt-text

Blur

  • Using loadPixels and updatePixels.
  • Apply the noise function to update the color of each pixels in the window.

alt-text

Bound bound ball

  • 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.

alt-text

Broken TV

  • Using loadPixels and updatePixels.
  • Update the color of each pixels in the window using the random function.

alt-text

Cannon agents

  • 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.

alt-text

Circle Box 2D

  • Using library Box 2D.
  • Circle agents in a space.

alt-text

Circle mass

  • 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.

alt-text

Circle system run

  • Class agent and system.
  • Each draw method create a new circle in the system along the old circle created.

alt-text

Circle system run 3D

  • Class sphere and system.
  • Each draw method create a new sphere in the system along the old sphere created.

alt-text

Random walker

  • System of agents and a class agent.
  • While the mouse is pressed it creates a new RandomWalker.

alt-text

Cube agent

  • 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.

alt-text

Drag Agents

  • 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.

alt-text

Escape agents cube

  • 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.

alt-text

Floaking agents

  • Classes agent, flowfield and spring.
  • Each flowfield show the path where the agents show move and also apply a vector force.

alt-text

Flow fields agents

  • Classes agent, flowfield and spring.
  • Each flowfield show the path where the agents show move and also apply a vector force.

alt-text

Force of gravity

  • 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.

alt-text

Friction circle systems

  • 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.

alt-text

Gaussian colorful circles

  • 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.

alt-text

Gravity force 3D

  • 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.

alt-text

Line ball spring

  • Class agent and spring.
  • Using spring force.

alt-text

Map graphic

  • Creating a graphic using noise function.

alt-text

Mountain terrain

  • Generating terrain using the triangle strip and noise function.

alt-text

Mouse acceleration

  • Class agent and system.
  • Total of 1000 agents.
  • All the agents chase the mouse position.

alt-text

Polygon Box 2D

  • Using library Box 2D.
  • Polygon agents in a space.

alt-text

Random No Fill ball

  • Class agent and system of agents.
  • Generate random agents using gaussian function.

alt-text

Random Colorful square

  • Generate colorful square in random positions.

alt-text

Rectangle bounds paint

  • Rectangule bounds against the borders of the window.
  • Class Agent.

alt-text

Rectangle bounds

  • Rectangule bounds against the borders of the window.
  • Class Agent.

alt-text

Route agents

  • Draw a route for the agents to follow.
  • Each agent follow the behind agent.

alt-text

Square of contrast

  • Create a background using pixels and noise function.

alt-text

The doggi

  • Take a image and generate random points to colour the image.

alt-text

Author

Danny Xie Li Engineering student in computer science

About

This repository is to save and keep tracking of my processing examples.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published