Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middle click -- good first issue? #290

Open
prendradjaja opened this issue Apr 15, 2022 · 3 comments
Open

Middle click -- good first issue? #290

prendradjaja opened this issue Apr 15, 2022 · 3 comments

Comments

@prendradjaja
Copy link

Hi! This is an awesome project :)

I don't have access to an old Windows installation to check, but if I recall correctly MS Paint allowed you to select and use a third color (in addition to left-click/foreground and right-click/background color) using the middle mouse button.

I'd love to contribute to this project (and might find the third color useful as an occasional user of this project) -- do you accept PRs, and do you have any guess at whether this would be a good first issue?

@1j01
Copy link
Owner

1j01 commented Apr 18, 2022

Thanks!
The tertiary color is implemented, but it's accessed using Ctrl. This is how it works at least in Windows 98.

There are some issues with it I believe. I made automated tests for this, where it draws using different tools using various fill styles and mouse buttons, and compares to an existing screenshot of the canvas, but the tests may need tweaking to get running again. Actually yeah, I have a local branch where I was working on getting the tests running again recently.
I think having the tests for this would be pretty useful because there's actually a lot of cases: (left mouse button, right mouse button, holding Ctrl) X (Fill, Fill + Outline, Outline) X 4 shape tools, plus (LMB, RMB, Ctrl) X 7 other tools.
So I'd probably want to sort that out, and squash my messy commit history, but then this would be a good issue to work on.

I'm rather absorbed in a new project at the moment, but I appreciate your willingness to help. I hope to get better at working with people at some point... I think longer term relationships are the key, and perhaps I'll feel better about engaging with contributors once I properly open source the project (give it a license).

@lafoxxx92
Copy link

Thanks! The tertiary color is implemented, but it's accessed using Ctrl. This is how it works at least in Windows 98.

There are some issues with it I believe.

A bit of feedback:

When you hold LMB to draw, the entire line changes colors as you press Ctrl.
In the original app you could draw like striped lines.
Tested in Vista paint, don't have possibility to check Win9x version at the moment though.

@1j01
Copy link
Owner

1j01 commented Jul 11, 2022

Ah, yes, making stripes used to work but is broken I see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants