Comments (2)
The color is hard coded so may be in next update the it can be added to side bar menu till then change code of Card 5 in card templates.
Anki-xiehanzi/card templates/Card 5/front.html
Lines 4 to 28 in d6794a6
from anki-xiehanzi.
@krmanik
This piece of code is equal to what I have in my local card templates (card # 5) so I assume you are just pointing out where exactly the code should be played with )
From what I see, we can set different colors depending on char's tone (including neutral) by editing hex codes - they appear when we successfully entered the hanzi or revealed it by tapping the button.
(That's really great enhancement by the way!)
IMHO:
I'm not really sure this control shall be included in the UI as usually these colors are set personally but once and forever.
So, editing template by hand won't be a hassle.
/end of IMHO )
Obviously, I put my suggestion incorrectly, what I meant was drawing color (the color which virtually 'comes out' from your stylus or fingertip when drawing the hanzi) - is it possible to make it tone dependent? So that when you draw 3rd tone hanzi - your lines will be colored as it's set for this tone.
Like currently the final appearance of the entered hanzi is (different color based on hanzi's tone).
The desired effect is such, that when you try to draw (even incorrectly), you already see the tone's corresponding color in your own writing and memorize the tone already (now these lines and curves are black in daymode and white in nightmode).
And when the hanzi is successfully entered, it also appears in the same "tone color", thus confirming the memorizing effect (the latter is already implemented).
PS. Also as I noted, the handwritten hanzi tone colors can't be currently varied depending on day/night mode?
PS2. in other words: is it possible to assign the resulting color from function getToneColor(char)
not only to the stroke_color
but also to the drawing_color
?
from anki-xiehanzi.
Related Issues (20)
- Proposals for interface: back navigate and restart buttons, green/red dot reposition HOT 2
- graphic tablet support for drawing HOT 8
- Remove the pinyin from the 'meanings' field HOT 5
- 怎么实现的啊? HOT 1
- Pinyin should not be present in {{Meaning}} field. HOT 2
- Add `tappable` class to button to make it works on iOS. HOT 1
- Move HSK dir as submodule with HSK wordlist project
- Drawing pad not showing in both latest (tone-colored strokes) versions HOT 7
- Can't practice Traditional on Android (on Desktop all works well) HOT 2
- Changes in sidebar (hint before misses, stroke width) has no effect on appearance and behaviour, + keyboard doesn't popup, have to paste HOT 3
- Traditional won't show when selected, need to restart quiz (Android 6.0.1) HOT 1
- Add ability to save default preferences (in sidebar) HOT 1
- Make 'blink' in the end of quiz the same color as the hanzi just entered HOT 1
- Not to remove the last hanzi after entered (to better memorize) + avoid stretched writing pad in case of missing sound file HOT 1
- Writing quiz not working on my mobile phone (ankidroid) HOT 2
- [Question] [Card 5]How do I change the colouring of the tones? HOT 1
- Small bug in UI - "what is the meanings?" should be "what is the meaning?" HOT 2
- Menu Icons not loading HOT 1
- Great job + a small bug issue HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anki-xiehanzi.