Coder Social home page Coder Social logo

kylejlin / flood-fill Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.27 MB

A flood-fill webapp that supports setting custom alpha values for the replacement color.

Home Page: https://kylejlin.github.io/flood-fill

License: MIT License

HTML 4.05% CSS 2.98% TypeScript 92.97%

flood-fill's Introduction

flood-fill

A TypeScript implementation of flood-fill that supports setting custom alpha values for the replacement color.

Click here to try it out!

Usage

  1. Open the web page.

  2. Upload an image.

  3. Choose your replacement color.

  4. Choose your tolerance.

    • Tolerance is defined as the Euclidean distance threshold under which the algorithm will continue filling.
    • Tolerance defaults to 0, meaning the algorithm will only continue filling the adjacent pixels that exactly match the target color.
  5. Click to flood-fill.

Motivation

If you Google "online fill bucket", you can find a plethora of existing flood-fill tools. However, I have yet to see one that allows you to configure the alpha value of the replacement color. This is problematic, as my primary use case for flood-fill is to remove opaque backgrounds.

License

MIT

Copyright (c) 2019 Kyle Lin

flood-fill's People

Contributors

kylejlin avatar

Watchers

 avatar  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.