Menu

#220 Size option for Magic tools

v0.9.30
closed
magic (1)
5
2023-04-28
2023-03-15
No

Allow Magic tools to report back whether they support a "size" option, and if so, make available to the user a sizing control (similar to the Stamp size, and also seen in Brush spacing and Slideshow playback speed), and send values to the Magic tool plugin.

Basically, the same thing we do for color choices ("do you support color?" and "here's the current/new color"), but for sizing. The most obvious example of where this would be useful is for the many tools which offer freehand support, and apply the effect in a fixed size around the pointer -- e.g., "Darken", "Emboss", etc. Ditto for the literal painting tools ("Pattern", "Rosette", etc.)

It could also be used to consolidate the two "Brick" tools and two "Googly Eyes" tools (and perhaps offer additional sizes; something I didn't do, to avoid adding a lot of basically-identical tools to the selector UI).

It could also be used for single-click tools, to offer variations of the effect, e.g. larger or smaller "Ripple" and "Fish Eye" effects.

Undoubtedly, there are other ideas we and others will come up with that take advantage of the option.

Discussion

  • William Kendrick

    Additionally, each Magic tool should probably report back how many unique sizes it offers (e.g., for Brick we may just stick with two; for Googly Eyes we may add a few more, and report back 3 or 4).

    The Magic tools could report back different descriptions, based on the size chosen. (So for example, to continue supporting the two strings that Googly Eyes uses: "Click to place a large googly eye, then drag and release to make it look that direction.", and "Click to place a small ...")

     

    Last edit: William Kendrick 2023-03-15
  • William Kendrick

    • Group: v0.9.29 --> v0.9.30
     
  • William Kendrick

    Magic tool should also report what it's default size should be.
    In init, it might be useful for Tux Paint to report to the tool whether the user has chosen to disable the sizing feature, so it could create multple magic tools.

    i.e., the new normal: one brick tool with sizes
    with the option turned off: two brick tools (large & small)

     
  • William Kendrick

    • status: open --> closed
     
  • William Kendrick

    Implemented! Beta testing now!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.