mriale / PyDPainter

A usable pixel art paint program written in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement Tint drawmode

mriale opened this issue · comments

From DPaint III manual:

TINT
Replaces the hue and saturation of the affected pixels with the current color but leaves the value of the screen pixels unaffected. This option is available only with built-in brushes.

@Sleuthgame I guess I had forgotten about tint, but it turns out that it wasn't that hard to implement. Thanks for the cool test picture to color:
Screenshot_20230813_182224
I put the blue fill color on the stencil so I could just tint the shapes with a big brush.

It look like another legacy usefull tool !

Tested. Work fine !
image

Hi !

Are we continuing the logic of function key shortcuts for modes with F9 for Tint?
(and F12 for AntiAliasing filling? Or SHIFT-F8 ?)

I'm writing the mode .md manual, that's why I'm asking now. ;-)

DPaint used F9 to toggle the menu bar, which I implemented. I never used this shortcut back in the day. I used F10 to toggle all the toolbox and menu bar together. Maybe it would be more useful for F9 to be assigned to Tint.

I've already got the fill modes mapped to numbers:
SOLID = 0
TINT = 1
BRUSH = 2
WRAP = 3
PERSPECTIVE = 4
PATTERN = 5
VERTICAL = 6
VERT_FIT = 7
HORIZONTAL = 8
HORIZ_FIT = 9
BOTH_FIT = 10
ANTIALIAS = 11
SMOOTH = 12

I don't have tint or perspective fill modes implemented yet, but we're already up to 13. Not sure how to map those to shift-function keys.

I barely used F9 either. Sure F9 for Tint will be more convenient.

I downloaded the last dev version, but I do not have theses new shortcut yet.
I'm continuing to illustrate the MODE .md section and I'll send you this asap.

I'm done ! I'll send you an email with mode.md and all pictures needed.

@Sleuthgame Awesome documentation! The demo pictures make it so easy to understand! I added it to develop.

I think I'm missing color-examples.png.

Thanks so much for all the work you put into this guide! I think a lot of people will benefit from this.

I added the text above, but I left the text "(in this case red)" because I added a duplicate of the Matte picture with all the colors replaced with red.

color-examples

I also reformatted some of the text and edited some of the things I missed yesterday.

Not a nice picture, but it's hard to understand how to use it.

I made a more attractive color draw mode picture:

color-examples

Hopefully it has enough examples in it.

Oh, and I made the Tint draw mode hotkey be F9.

Nice. On the path to release ?

We need a .md page tracking all the features we invent that are not DPaint legacy. There a lot now !