Code Monkey home page Code Monkey logo

polyer's Introduction

Polyer

Process a picture to low poly format, base on WebGL

Live on https://zhiyishou.github.io/Polyer

This app could run anywhere on PC/Mac/Mobile except using IE10 or older

"comparison"

Usage

Drag or upload a picture to Polyer and edit with control panel
you can save the low poly picture after process

Tips

  • hold space to move
  • scroll mousewheel to zoom
  • the panel could be dragged

Control Panel

Mode

Edit
show edit window only

Sync
show edit window and view window both

View
show view window

Process


Blur Size
The size of kernel when doing convolution for blur process

Optimum:1
You could adjusting with Edit Bg is blured visual for finding a best value when the picture is smooth enough

Edge Size
The size of kernel when detecting edge for edge process

Optimum : 1
You could adjusting with Edit Bg is edged visual for finding a best value when the edge is exactly we want

Apply Button
Click for apply the current blur size and edge size

edge Bg
The background image of edit window

  • Original: show original image you uploaded as background
  • Blur: show blured image as background, could be refered when adjusting blur size
  • Edge: show edged image as background, could be refered when adjusting edge size

Edit


Vertex

  • Add: add a vertex
  • Remove: remove vertices with a triangle

View

  • Move: move the view
  • ZoomL: Zoom the view to larger
  • ZoomS: Zoom the view to smaller

Vs Num
Num of all vertices

This value colud limit the num of vertices, the vertices be more, the processed picture will look like original picture more.

Colors


Mesh Color
The color of triangle mesh in edit window

Edit Bg
the clear color in edit window

View Bg
the clear color in view window

Fill Color
The way of fill a triangle

  • Average: Fill with the average of colors at three vertices in a triangle
  • Center: Fill with the color at the center of a triangle

polyer's People

Contributors

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