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

https://github.com/tw1ddle/rectangle-bin-packing-demo

:briefcase: Haxe 2D rectangle bin packing algorithms demo
https://github.com/tw1ddle/rectangle-bin-packing-demo

bin-algorithm bin-packer bin-packing haxe haxelib packing-algorithm packing-algorithms

Last synced: about 2 months ago
JSON representation

:briefcase: Haxe 2D rectangle bin packing algorithms demo

Awesome Lists containing this project

README

        

![Project logo](https://github.com/Tw1ddle/Rectangle-Bin-Packing-Demo/blob/master/screenshots/bin_packing_logo.png?raw=true "Bin Packing Algorithms Demo Logo")

[![License](https://img.shields.io/:license-mit-blue.svg?style=flat-square)](https://github.com/Tw1ddle/Rectangle-Bin-Packing-Demo/blob/master/LICENSE)
[![Build Status Badge](https://ci.appveyor.com/api/projects/status/github/Tw1ddle/Rectangle-Bin-Packing-Demo)](https://ci.appveyor.com/project/Tw1ddle/Rectangle-Bin-Packing-Demo)

Demo of the Haxe rectangle [bin packing](https://github.com/Tw1ddle/Rectangle-Bin-Packing) algorithms [haxelib](https://lib.haxe.org/p/bin-packing). Run the demo [in your browser](https://tw1ddle.github.io/Rectangle-Bin-Packing-Demo/index.html).

### Usage ###

This demo requires HaxeFlixel and the bin-packing haxelib, so install these first:

```bash
haxelib install flixel
haxelib install bin-packing
```

Tap the buttons at the bottom of the screen to test the packing algorithms. Rectangles are numbered as they are added, flipped rectangles are marked with the letter "F". Tap the test button to run sets of tests.

### Screenshots ###

![Screenshot](https://github.com/Tw1ddle/Rectangle-Bin-Packing-Demo/blob/master/screenshots/screenshot1.png?raw=true "Bin Packing Algorithm Demo screenshot 1")

![Screenshot](https://github.com/Tw1ddle/Rectangle-Bin-Packing-Demo/blob/master/screenshots/screenshot2.png?raw=true "Bin Packing Algorithm Demo screenshot 2")

### Notes ###
* This demo runs on all targets HaxeFlixel supports.