All Projects → zhengsk → image-masaic

zhengsk / image-masaic

Licence: other
Set mosaic to image by canvas.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to image-masaic

Mosaicer
OpenCV & Tensorflow
Stars: ✭ 36 (+44%)
Mutual labels:  mosaic
Tessellate
Server-side React render service.
Stars: ✭ 142 (+468%)
Mutual labels:  mosaic
quarkdet
QuarkDet lightweight object detection in PyTorch .Real-Time Object Detection on Mobile Devices.
Stars: ✭ 82 (+228%)
Mutual labels:  mosaic
Mosaic
A tiling web browser.
Stars: ✭ 74 (+196%)
Mutual labels:  mosaic
Tailor
A streaming layout service for front-end microservices
Stars: ✭ 1,640 (+6460%)
Mutual labels:  mosaic
Mapwarper
free open source public map georeferencer, georectifier and warper
Stars: ✭ 152 (+508%)
Mutual labels:  mosaic
Anime Inpainting
An application tool of edge-connect, which can do anime inpainting and drawing. 动漫人物图片自动修复,去马赛克,填补,去瑕疵
Stars: ✭ 761 (+2944%)
Mutual labels:  mosaic
BlurKit
A lightweight library that can easily blur the view.
Stars: ✭ 17 (-32%)
Mutual labels:  mosaic
Mosaic Contracts
Mosaic-0: Gateways and anchors on top of Ethereum to scale DApps
Stars: ✭ 119 (+376%)
Mutual labels:  mosaic
Mosaic
Mosaic, an openFrameworks based Visual Patching Creative-Coding Platform
Stars: ✭ 250 (+900%)
Mutual labels:  mosaic
Jquery Mosaic
A jQuery plugin to build responsive mosaics of images or any other content fitted to match heights in multiple rows while maintaining aspect ratios. http://jquery-mosaic.tin.cat
Stars: ✭ 80 (+220%)
Mutual labels:  mosaic
Uav Mapper
UAV-Mapper is a lightweight UAV Image Processing System, Visual SFM reconstruction or Aerial Triangulation, Fast Ortho-Mosaic, Plannar Mosaic, Fast Digital Surface Map (DSM) and 3d reconstruction for UAVs.
Stars: ✭ 106 (+324%)
Mutual labels:  mosaic
Innkeeper
Simple route management API for Skipper
Stars: ✭ 158 (+532%)
Mutual labels:  mosaic
Emoji Art Generator
Use a genetic algorithm to evolve an image by putting emojies on a canvas
Stars: ✭ 53 (+112%)
Mutual labels:  mosaic
photomosaics
Python program that makes a photo mosaic out of a given image
Stars: ✭ 25 (+0%)
Mutual labels:  mosaic
Nem Apps Lib
Semantic Java API Library for NEM Platform
Stars: ✭ 16 (-36%)
Mutual labels:  mosaic
Zlimageeditor
A powerful image editor framework. Supports graffiti, cropping, mosaic, text stickers, image stickers, filters.
Stars: ✭ 148 (+492%)
Mutual labels:  mosaic
go-mosaic
相片马赛克 (Photographic mosaic)
Stars: ✭ 23 (-8%)
Mutual labels:  mosaic
CollectionViewMultiColumnLayout
A tiled waterfal/mosaic UICollectionViewLayout with support for explicit columns.
Stars: ✭ 13 (-48%)
Mutual labels:  mosaic
Skipper
An HTTP router and reverse proxy for service composition, including use cases like Kubernetes Ingress
Stars: ✭ 2,606 (+10324%)
Mutual labels:  mosaic

image-mosaic

Set mosaic to image by canvas. Demon Page

Install

npm install image-mosaic

Usage

    import Mosaic from 'image-mosaic';

    const canvas = document.querySelector('#canvas');
    const ctx = canvas.getContext('2d');

    const mosaic =  new Mosaic(ctx, {
        tileWidth: 10,
        tileHeight: 10,
        brushSize: 3,
    });

    // Mosaic on full image.
    mosaic.drawAllTiles();

Instance property

{
    context, // canvas context.
    imageData, // canvas image data.
    width, // canvas width.
    height, // canvas height.
    tileWidth,
    tileHeight,
    tileRowSize, // tile count in a row.
    tileColumnSize, // tile count in a column.
    tiles: [ // tiles.
        {
            row, // tile row position.
            column, // tile column position.
            pixelWidth, // tile pixel number.
            pixelHeight, // tile pixel number.
            data, // tile data.
            color,
            isFilled,
        }, ...
    ]
}

Methods

    mosaic.drawTile(tiles);

    mosaic.drawTileByPoint(x, y);

    mosaic.getTilesByPoint(x, y, isBrushSize);

    mosaic.drawAllTiles();

    mosaic.eraseTile(tiles);

    mosaic.eraseTileByPoint(x, y, isBrushSize);

    mosaic.eraseAllTiles();

Demon image

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].