GithubHelp home page GithubHelp logo

clbagrat / canvas-outline Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 6.0 282 KB

Silly tool for outlining png images with transparency

Home Page: https://clbagrat.github.io/canvas-outline/

HTML 9.24% TypeScript 79.44% CSS 11.32%

canvas-outline's People

Contributors

burryfun avatar clbagrat avatar crashmax-dev avatar emcifuntik avatar iambudnikov avatar rprtr258 avatar sbnoone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

canvas-outline's Issues

Fix multi-thread algo

At the moment when we use webworkers in order to run outline algo in parallel.
It has some artifact, since one worker doesn't know what picture is handled by "neighbor" workers.
All we need to do is to pass to every worker an overlap of neighbor segments in form of buffer info of N x Width segment. Where N is amount of strokeWidth.

I know it's complex AF, so please don't hesitate to pair code with me :)

realtime settings change

show settings (color and stroke width) on a result page and provide a possibility for realtime change of it

Improve markup

As you can see, currently, markup is ugly AF.
Would be cool if you spend some time improving it, just as you wish.

some ideas:

  • make droppable area for the pic
  • make preview area to be fixed in size
  • use any color you want but please be mindful about accessibility

Add a slider to pick stroke width and color

ATM user can't choose neither color nor how many pixels is a stroke.
Please add those options (algo is fully ready for strokeWidth, but not yet ready for color).

  • use slider for width
  • use input type color for colorpicker

Wasm?

would be curious to see a rust implementation.

Since we have a monorepo (thanks to @crashmax-dev) we can just add new package for wasm and use both tech, so we can compare the results :)

Later on we could pick one, or give user an option :)

proper README.md

give some context of what is going on here and provide link to demo

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.