Hot the whole network! This project is Python air show!

Click on the blue " Python space " Ah my attention

Add a " star " happy learning together every day

Guo Yipu from the bottom of the recessed non-Temple

Qubit reports | Public number QbitAI

Like writing a cloud, with a variety of thumbnail spell big picture, to build a wind pixel world, like "my world" as certain very interesting.

Also can be used to make collages, cross stitch and other decorations.

In this called tiler 's GitHub open source project where you can automatically achieve all this, just open it one day, the star has risen to 1100, the growth rate visible.

Tiler, bricklayer mean, it is to use a variety of small elements as the "Wall", built out of a big picture.

Project presupposes a lot of "W": There are Lego, plus, round, the @ symbol, heart-shaped, multiplication sign, wavy lines, horizontal and vertical bars, "My World" in a variety of grid, as well as a paper clip shape:

There is also a set of Halloween-themed icon, including a variety of pumpkins, Boy, bats, owls:

These different "tile" size of the color can be set and the angle of the screen to accommodate different specifications.

In addition, you can also set the size of the entire screen and how many colors constitute "tiles", that is blurring the mosaic.

You can use different materials, "tile", splicing a variety of patterns.

Such as Van Gogh's "Star", the program is shown in 10 × 10,25 × 25,50 × 50 makes up three kinds of circular specifications:

 "Star" 10 × 10 in

 25 × 25 in the "Star"

 50 × 50 in the "Star"

There is no sense in PS Gaussian blur radius control drag strip?

You can also set up so that the images constitute "tile" sizes

Also try to get Lego spell:

See amplification, beautiful sky, it is such that:

A small brick, covered with a specific surface of Lego circular protrusion.

Ah, if I have such a big Lego, think about the Shuangwai.

(Here rushed to music at high single store, gold -1000)

There multiplication edition:

If you zoom in, you will find that this is a cross-stitch pattern ah!

So much a cross-stitch, colorful, gorgeous staggered, at a glance you can play for a long time, retired mother saw luminous eyes.

Embroidery is finished hanging in your house, and you wind Nordic / minimalism / Morandi wind / wind from the room with a very, as the audience the most compelling decorative painting.

If the wood has patience, consider a mini-version:

Can also be made "My World" look

Star of the details are as follows:

Can you recognize these bricks are what it ......

Run Guide

If you want to run on their computers, then, in addition to Python 3 and pip, you also need to install OpenCV, numpy and tqdm.

Then, on the command line can be solved.

You need to set a few parameters:

In gen_tiles.py set:

The DEPTH : division number of each color channel (EX: the DEPTH. 4 = -> *. 4 . 4 *  . 4 = 64 Colors);
Rotations : list rotation, in degrees, applied on the original image (ex: [0, 90 ]).

In tiler.py set:

COLOR_DEPTH : division number of each color channel (EX: COLOR_DEPTH. 4 = ->. 4 . 4  . 4 = 64 Colors);
RESIZING_SCALES : ratio applied to each tile (ex: [1, 0.75, 0.5, 0.25]);
PIXEL_SHIFT number of pixels in each block moves to create (ex:: (5,5)) ; if None, shift will be the same as the tile dimension) ;;

OVERLAP_TILES : if constituting an image "tiles" can overlap;
the RENDER : the rendered image;
pool_size : multiprocessing pool size;
IMAGE_TO_TILE : an image into tile (as if the first parameter is ignored);
TILES_FOLDER : tile folder ( If as a second transmission is ignored arg);
OUT : results of the image file name.

Rich hole of the brain

This entry ID called nuno-faria, Tiler addition to this project, he has a lot of interesting things open source.

There is a Sokoban use Java to write:

Pixels wind full desktop Football:

There are many kinds of Tetris, pinball, etc., all of them are quite interesting -

Portal

https://github.com/nuno-faria/tiler

-END-推荐阅读:没想到 Python 中竟然还藏着这些稀奇古怪的东西...
奥利给!有了这么豪横的指南,还愁不会逛 GitHub?!
速观!GitHub 总星 5.4w+,这里藏着 Git 从入门到轻松玩转的秘密!
出不了门的日子,我选择在 GitHub 上快乐的打游戏
神级宝库!GitHub 标星 1.2w+,Chrome 最天秀的插件都在这里啦!B站收藏 6.1w+!GitHub 标星 3.9k+!这门神课拯救了我薄弱的计算机基础

????扫描上方二维码即可关注
Published 612 original articles · won praise 7339 · Views 1.29 million +

Guess you like

Origin blog.csdn.net/u013486414/article/details/104935304