GithubHelp home page GithubHelp logo

huandney / anki-stylusdraw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rytisgit/anki-stylusdraw

0.0 0.0 0.0 1.23 MB

Pressure Drawing functionality for Anki

Home Page: https://ankiweb.net/shared/info/1868980340

License: GNU General Public License v3.0

Python 83.20% HTML 16.80%

anki-stylusdraw's Introduction

Anki-StylusDraw

Initially based on the Anki-TouchScreen addon, updated ui and added pressure pen/stylus capabilities, perfect freehand(line smoothing) and calligrapher functionality.

Website to test the drawing functionality: https://rytisgit.github.io/Anki-StylusDraw/

Draw Demonstration

Changes

  • Updated UI, add option to convert dots, hide cursor and ui while drawing. Thanks rin-w
  • Added Perfect Freehand mode(https://github.com/steveruizok/perfect-freehand)
  • Added Calligrapher mode(https://github.com/atomanyih/Calligrapher)
  • Added pressure sensitivity
  • Increased drawing speed
  • Added , for showing/hiding, . for clearing, alt + c for calligrapher mode and alt + x for perfect freehand mode
  • Added standalone website to test drawing
  • Work around a Windows Pen bug which makes 2 primary pointers appear when drawing in Anki

Hardware

Tested to work with a Huion H1161, Windows Pen enabled.

For best exprience dont use software rendering and turn on use pen as a mouse

Dont use software rendering in Anki settings Check use pen as mouse in Windows pen settings

Old Description

Implements same drawing/writing mechanism as in AnkiDroid. Your writing is NOT intended to remain on the cards after review - same as in AnkiDroid.

Use the menu View โ†’ TouchScreen to activate/change settings.

Use Ctrl + R to toggle the touchscreen.

Use icons which will show up in the top right corner of the review screen to temporarily hide/clean the board. Enjoy!

Warning: the version for Anki 2.0 has limited functionality, and may sometimes not work as expected; since the release of Anki 2.1, the old version is not supported.

Changelog:

  • 0.2.6 - make "undo" action available under Alt + Z
  • 0.2.4 - add support for enhanced image occlusion, add a fix for "a double click bug" by LaucianK
  • 0.2.3 - bug fix release, improvements to undo button, styling and performance
  • 0.2.1 - minor fix for the buttons/canvas positioning
  • 0.2 - added "undo" option, improved the support of long cards plus other minor improvements

Disclaimer

Important parts of Javascript code were inspired by creativejs tutorial. I recommend you check out the resource if you are interested in learning JS.

This add-on works well with Anki Night Mode.

For developers

You are more than welcome to contribute! While I may not be able to support every user of this addon, I will do my best to help any developer willing to open PR implementing new features or fixing bugs.

anki-stylusdraw's People

Contributors

rytisgit avatar krassowski avatar icecolors avatar rin-w avatar cookiemon avatar lauciank avatar spenhouet 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.