Skip to content

A java project that sorts pixel based on brightness (customizable) with reverse mergesort (or other algorithms if implemented) and displays an animation afterwards that shows the process of the algorithm sorting the pixels. This was made in Processing 4.

License

Notifications You must be signed in to change notification settings

Inoyuuuuu/PixelSort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PixelSort

A java project that sorts pixel based on brightness (customizable) with reverse mergesort (or other algorithms if implemented) and displays an animation afterwards that shows the process of the algorithm sorting the pixels. This project was made in Processing 4.

Sorting Crtiteria

The sorting crtiteria can be adjusted via the value of "sortCriteria":

  • 0 brightness
  • 1 HUE
  • 2 saturation
  • 3 red value
  • 4 blue value
  • 5 green value

Animation

The animation works by saving "snapshots" of the image after fixed iterations of the sorting algorithm, which then are played back after the pixels were sorted. This can be disabled with the "isAnimationEnabled" variable.
Doing so will drastically increase the speed and capability of the pixelsort program and prevents the programm running out of memory to use.

Image

All original images in the "Data" folder were taken from Pixabay.com and are free for use under the Pixabay Content License.

The image can be selected by changing the name of the the "imageName" variable.
Image names and sizes:

  • bee = 200x200
  • catS = 300x300
  • fish = 500x500
  • cat = 600x600
  • foxS = 600x600
  • flowers = 800x800
  • butterfly = 800x1200
  • frog = 800x1200
  • fox = 1300x1300
  • kingfisher = 2200x2200

About

A java project that sorts pixel based on brightness (customizable) with reverse mergesort (or other algorithms if implemented) and displays an animation afterwards that shows the process of the algorithm sorting the pixels. This was made in Processing 4.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors