Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a simulation #70

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions earth/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Earth Animation

![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)

This simple programe written with processing (like JAVA but easier).<br>
It's a progme that animate the earth with a car.
Click <a href="https://processing.org"> here </a> to read more about processing3.

## Features :dart:
* [x] Free & Open Source
* [x] Very Easy to use
* [x] No Internet connection required

## Screenshots
Earth Animation
:---------------------:
![screenshoot](screenshots/earth.png)

## Requirements
* processing3

## How To Use It
1. Download Processing3 from this link: https://processing.org/download/
2. Install this repository.
3. Extract the folder.
4. Open the ```earth.pde``` file.
5. Run it :)

## Contributing 💡
If you want to contribute to this project and make it better with new ideas, your pull request is very welcomed.<br>
If you find any issue just put it in the repository issue section, thank!<br><br>
.سبحَانَكَ اللَّهُمَّ وَبِحَمْدِكَ، أَشْهَدُ أَنْ لا إِلهَ إِلأَ انْتَ أَسْتَغْفِرُكَ وَأَتْوبُ إِلَيْ
Binary file added earth/data/car.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added earth/data/earth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions earth/earth.pde
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import ddf.minim.*;

Minim minim;
AudioPlayer a,b,c,carsound;

PImage ert,car;
float rt;

void setup(){

size(1000,900);
background(0);

ert=loadImage("earth.png");
car=loadImage("car.png");


}
void draw(){

imageMode(CENTER);

noStroke();
fill(0,5);
rect(0,0, width, height);

fill(250);
ellipse(random(width), random(height), 5,5);
pushMatrix();
translate(width/2,1200);
rotate(rt);
rt+=.01;
image(ert,0,0);
popMatrix();
image(car,width/2,462);
}
Binary file added earth/screenshots/earth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.