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

Drawing without stroke #213

Open
edemaine opened this issue Oct 17, 2022 · 0 comments
Open

Drawing without stroke #213

edemaine opened this issue Oct 17, 2022 · 0 comments

Comments

@edemaine
Copy link
Owner

edemaine commented Oct 17, 2022

When drawing filled pixels, it's annoying to have to change both stroke and fill color every time. One convenient way would be to turn off the stroke. Possible interfaces:

  • Line width 0 is selectable (but then meaningless without fill)
    • I've experimented with this slightly. It makes lines impossible to select via direct clicking, even if we boost 0 to say 0.01. Also, the Collision algorithm doesn't work anymore, so can't select in the middle of a line using a rectangle; it seems to assume nonzero width.
  • Transparent color option (could be used to turn off stroke or fill).
    • Most drawing programs go this way.
  • Stroke toggle (but then meaningless without fill)
  • 3-way toggle between stroke, stroke+fill, and fill only replacing the current fill toggle (drop):
    • image
    • This is nice because it slightly more consistently shows your stroke and fill color. (Currently, fill is in the drop and stroke is in the line widths and color selector.) But the behavior is maybe confusing...

Related, we need to figure out how the pen tool interacts with this. Presumably don't want pen at zero width, unless we also allow pen to fill? (Currently we don't.)

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

1 participant