Code Monkey home page Code Monkey logo

croquispop's People

Contributors

dahlia avatar disjukr avatar saschanaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

croquispop's Issues

채우기 기능

bucket
https://twitter.com/_isca_0628/status/357046060641816576

포토샵의 채우기 기능을 구현하려면..

  1. tolerance 기준으로 채워질 수 있는 영역 매핑하기.
  2. contiguous(인접) 옵션이 활성화되어있으면 클릭한 지점부터 1번에서 만든 맵에 floodfill(해당하는 네이티브 구현이 없어서 직접 해야함. 느립니다ㅠㅠ).
  3. 1, 2번을 거쳐 처리된 맵의 알파 채널에 안티앨리어싱 적용 후(아아.. 느립니다ㅠㅠㅠ) 나머지 채널은 foreground(전경) 색을 매핑.

아니면 윈도 그림판처럼 floodfill만 구현해도 되겠지만 이건 좀 많이 구림(...)

history(undo, redo)기능 구현

undo와 redo는 실제 레이어의 내용물 및 속성에 영향을 주는 명령에 대해서만 되돌리기, 다시실행을 한다. (포토샵처럼)

예를 들면 레이어 추가, 제거, 크기변경, 투명도 변경 등에 대해서는 undo, redo가 가능하지만 레이어 선택, 손떨림 보정, 툴 색상, 크기변경 등에 대해서는 undo, redo가 불가능하다.

ctrl_z
http://blog.0xabcdef.com/100191200956
http://blog.naver.com/fall1374
https://twitter.com/Emptygoose/status/352355415947886592
https://twitter.com/sex100hab/status/352394232834686976

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.