Final Series of IMBLEND blending modes, and including modulo modes.
ClosedPublic

Authored by Reptorian on Sep 18 2018, 4:59 AM.

Details

Summary

The IMBLEND file that is relevant. Contains many different blending modes, and provides a base for adjustable blending mode feature idea in case any one wants to do that.

Due to DGM the IMBLEND author arrival in the open-source scene, he has provided a file which allows for more blending modes. So, what I did was translated them to Krita format, and added mod() to enable modulo operations, and created modulo operations. I will get the description of each blending modes pretty soon, but I will leave this differential for now. Now there isn't any missing blending modes besides ones from autodesk sketch (there is no formula for those, and workarounds is too costly, so I will not be doing those.)and of course LCH modes (this has to be enabled first, as of now LCH Color, and LCH Lightness are possible. Chroma or Hue isn't.).

One little detail I'd like to say before doing the more formal description of those modes:
Modulo operations allows for people to use Krita to generate abstract art, and glitch art. They also have the benefit of allowing manipulation of gradient to a fine degree. Just like binary modes, if you use gradients with those operations, you can generate a fine abstract art.

Diff Detail

Repository
R37 Krita
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
Reptorian created this revision.Sep 18 2018, 4:59 AM
Restricted Application added a reviewer: Krita. · View Herald TranscriptSep 18 2018, 4:59 AM
Restricted Application added a project: Krita. · View Herald Transcript
Reptorian requested review of this revision.Sep 18 2018, 4:59 AM
Reptorian updated this revision to Diff 42005.Sep 20 2018, 8:31 PM
Reptorian edited the summary of this revision. (Show Details)

Figured out modulo continuous, and made super light the middle of hardlight and pinlight. Also renamed some blending modes. Now, I will say that I'm done here with those modes 100%. Documenting those soon.

Reptorian updated this revision to Diff 42159.Sep 23 2018, 1:42 AM

Only fixed Modulo Shift.

rempt added a subscriber: rempt.Jan 3 2019, 9:48 AM

Did we already commit this?

Did we already commit this?

No, not to my knowledge. I was about to bring this issue up though.

rempt accepted this revision.Jan 15 2019, 9:18 AM

Right... From cursory testing, every seems to work. I'm pretty sure we need to expand the names with a bit of explanation, though -- nobody is going to be able to figure out what Frect is :-)

This revision is now accepted and ready to land.Jan 15 2019, 9:18 AM
Reptorian updated this revision to Diff 49562.Jan 15 2019, 7:47 PM

Name changed as requested.

Reptorian updated this revision to Diff 49564.Jan 15 2019, 8:21 PM

Saw an oversight when testing with a blending mode test kra file, and fixed Easy Dodge.

Reptorian updated this revision to Diff 49569.EditedJan 15 2019, 8:44 PM

Saw an oversight on hard overlay, see this picture - https://i.imgur.com/Of56NnR.png

I fixed that issue. The behavior of hard overlay still is retained and the blending are consistent. I also wish I can fix hard mix photoshop, but the big issue is that the bug is on photoshop end, so I can't do anything about that.

rempt added a comment.Jan 16 2019, 9:34 AM

I also wish I can fix hard mix photoshop, but the big issue is that the bug is on photoshop end, so I can't do anything about that.

No, we cannot fix photoshop :-)

Any updates pertaining to this patch?

rempt added a comment.Feb 6 2019, 10:39 AM

If you're sure there isn't anything left, we can push the patch :-)

There's nothing left to do.

This revision was automatically updated to reflect the committed changes.
rempt added a comment.Feb 8 2019, 9:55 AM

We got a bug report: https://bugs.kde.org/show_bug.cgi?id=404080 -- could you take a look?