Bug 368392 - Percentage for math input
Summary: Percentage for math input
Status: RESOLVED LATER
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: git master (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Halla Rempt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-07 13:25 UTC by eliotJ
Modified: 2020-02-19 12:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eliotJ 2016-09-07 13:25:06 UTC
Krita v3.0.1 introduced great math input: https://docs.krita.org/Maths_input

I have noticed that it has some advenced operators, like "Natural Logarithm" (these, I think, will be rarely use by the artists). I think it missed percentage input (for example 467+30%) which would be far more usable for artists, I believe :).

Reproducible: Always
Comment 1 Paragon 2016-09-14 13:50:58 UTC
We are working on unit support (first dynamic unit change, then we'll do unit conversion). In this case it's clear what % mean.

But in the case we're not in a spinbox with units I don't understand what you mean by %. Do you mean percent of the old value ? (For example I have a box with 12 inside, I write 4 + 50% and it translate to 4 + 0.5*12 = 10)
Comment 2 eliotJ 2016-11-13 11:14:48 UTC
Upsss... I have forgotten to answer here... Sorry.

I simply mean this kind of situation:
Artist has an image with 2550 px width. He need to change width, add 30% to it. This means 2550 + 30% = 3315 px.

Would these kind of calculation be possible after yours path will be done ?
Comment 3 Halla Rempt 2020-02-19 12:22:57 UTC
No, it's not possible... It's also not very clear what + 30% would mean. But Paragon has stopped working on this feature, so I doubt it will happen...
Comment 4 Paragon 2020-02-19 12:47:00 UTC
Sorry, I miss the time to work on it :S (I'm in the middle of a PhD right now).

There's % (plus vh and vw) units support where it's relevant, but only to convert the whole spinbox, and not to manage multiple units.

What we could implement instead, now that I think about it, is % support for the * operator. So instead of writing 2480px + 30% in a spinbox that was 2200px (which is unclear, as it might be % of the old value 2200px or the previous value 2480px), you would write 2480px*130% which would become 2480*1.3 (the transformation is obvious for mathematician, but it might be useful for artists).