10000 GitHub - ijt/flowfill: JavaScript layout algorithm for videos and images
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ijt/flowfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flowfill

Flowfill is a JavaScript layout algorithm for videos and images.

Prerequisites

Demo

To try out flowfill, run

npm install lit-html
go get github.com/ijt/serve
serve

then open http://localhost:2525/demo.html in a browser. Try resizing the browser window to see how the layout algorithm adapts.

How it works

Flowfill uses bisection to find the optimal height for a set of videos such that they will fill a rectangle with given width and height without spilling over.

Flowfill works with the lit-html library from Google. Background on lit-html is available at https://lit-html.polymer-project.org/.

About

JavaScript layout algorithm for videos and images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0