Giter Site home page Giter Site logo

bitbangr / img_tile Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.78 MB

img_tile converts an input image into a mosaic tiled image and produces an output "map" pdf file that can be used to construct a mosaic with actual ceramic tiles. Tile colours are specified in json format in a color file.

Rust 100.00%

img_tile's Introduction

img_tile

img_tile converts an input image into a tiled image and produces an output "map" pdf file that can be used to construct a mosaic with actual ceramic tiles. Tile colours are specified in json format in a color file.

Program parameters are specified in a json config file passed as a command line arg.

This program is run via command line. For example

workingdir%target/debug/img_tile --config ./config/config_200px_kroma_2x2.json

The input config file is in json format.

{ "tile_colors":"./tile_json/kroma_colors.json",
"input":"./images/4x4_Kroma_16.png",
"output":"./images/output/2x2_kroma.jpg",
"output_width":200.0,
"output_height":200.0,
"tile_size_x":50,
"tile_size_y":50,
"tile_space_x":0.0,
"tile_space_y":0.0,
"tiles_per_pane_width":2,
"tiles_per_pane_height":2}

img_tile is written in Rust.

img_tile's People

Contributors

bitbangr avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.