arntzy / tmuxels Goto Github PK
View Code? Open in Web Editor NEWconvert an image into a low-res tmux pane representation
convert an image into a low-res tmux pane representation
***TODO*** 1. Get the image size, figure out how to resize image to the right size (206 X 56) 2. Tile the image into (23 X 14) tiles 3. tile those tiles into 6 x 3 tiles 4. do a color analysis on each small tile to obtain color for prompt building 5. Build the prompts with the closest colors ***IMAGEMAGICK COMMANDS*** **converting to tiles*** convert timbers.jpg -crop 69x71 tile%04d.jpg **For removing tiles** ls -d *tile* | awk '{print "rm "$1}' > doit.sh **For getting attributes of image** identify -verbose timbers.jpg ***Get exact size in pixels of tile identify -format "%[fx:w]x%[fx:h]" tile0358.jpg ***GENERAL INFO*** **TMUXELS** 1. Each square has (6 x 3) matrix of stars in it. 2. There are 24 * 14 = 322 boxes 3. There are 322 * 18 = 5796 pixels ***TIMBERS.JPG*** 1. 1600x1000 == 1.6M Pixels 2. 1600 / 23 = 69 3. 1000 / 14 = 71 4. Each big tile is (69 x 71) 5. 69 / 6 = 11 6. 71 / 3 = 23 7. Each of the small tiles needs to be broken up into 11x23 tiles
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.