Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ashokdey/pixel_explosion

C++ application that draws patterns with Pixels
https://github.com/ashokdey/pixel_explosion

animation cpp cpp11 particles pixel pixel-explosion sdl video visual-studio

Last synced: 6 days ago
JSON representation

C++ application that draws patterns with Pixels

Awesome Lists containing this project

README

        

# Pixel Explosion Animation
This application is made using **SDL2** and **C++**.

###What it does?
It draws the pixels on the screen with **_swirl animation_** with little amount of blur to make the animation smooth.
A sample video has been attached to the repository. Watch the video _**[here](https://youtu.be/h1LhbyHl7dI)**_

####How it looks?

![A Snapshot](snapshot.jpg?raw=true "Snapshot")

####Tools Used
* Visual Studio 2015 Community Edition. _**[Get it here](https://www.visualstudio.com/")**_
* _**Simple DirectMedia Layer**_ is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.

####How to setup
* Download the SDL2 Library **_[Download it here](https://www.libsdl.org/download-2.0.php)_**
* Setup Visual Studio with SDL. I will add a tutorial shortly
* Get the Visual Studio Project Folder is **_[here](https://drive.google.com/drive/folders/0Byqg5mck_vdLOS1UV2ZQUEE1amc?usp=sharing)_**
* Now if you got the **ParticleExplosionSDL** folder, simply Open VisualStudio -> File -> Open -> Project/Solution and then open **ParticleExplosionSDL.sln**
* Hit **Ctrl + F5**
* Have Fun

###Note:
It uses the 64-bit libs and 64-bit compilier which you can set from the **Standard Toolbar** just below the **FILE** menu

####Simple Hacks
If you're really very interested in changing the amination and the number of pixels then there are two files that are of your interest.
* Chaange the number of particles : _Head towards the file names as **Swarm.hpp** and change the value of **static const int NPARTICLES**. Currently it is set to **8000**_
* Want to change the animation as well? _Head towards the file **Particle.cpp**, inside the **update** function, change the value of **double literal** in the expression **direction += interval * double_literal**. The default value of the **double_literal is: 0.000688**_

You can use it as a mini project.
Thanks