Commit graph

4368 commits

Author SHA1 Message Date
Bill Kendrick
82d5c0c4e7 Sync'ing docs & adding images for Starter/Template options files 2023-02-12 12:45:28 -08:00
Bill Kendrick
72914158dd Rocks template: bottom gravity 2023-02-12 10:50:26 -08:00
Bill Kendrick
17eb62e554 Template/Starter options: Ability to specify gravity
e.g. if the aspect ratio of the template/starter is wider than
that of the canvas, and "autoscale=vertical" (or "=both")
is specified, before it would chop the top and bottom of the
image off, displaying the vertical center of it on the canvas.
Now you can ask it to gravitate towards the top or bottom, if they
have content that's of higher significance than the opposite side.

h/t Pere & Albert for the suggestion.

TODO - Document, set some suitable defaults for images we ship.
2023-02-12 10:39:58 -08:00
Bill Kendrick
2066dc453e Googlyeyes: Different icon for small variation
h/t Pere
2023-02-11 21:33:57 -08:00
Bill Kendrick
03c57cc721 More WIP starter/template scaling
Need to actually scale, if we have no background.
2023-02-10 02:08:14 -08:00
Bill Kendrick
9b93805ef6 [WIP] Starter/Template scale/smear/bkgd color options
Now possible to set scaling and smearing options for
each starter or template image.  A ".dat" file can be
created which describes whether it's okay to scale and crop
the image's top/bottom and/or left/right, and if not both,
whether to smear the sides of the starter/template to the
edges of the canvas (the prior behavior, and the default),
or use a specific solid color background.

Once finished, will close
https://sourceforge.net/p/tuxpaint/feature-requests/190/

Still to do:
 + Document
 + Remove debugging printf()s (change to DEBUG_PRINTF()?)
 + Add files for starters & templates that ship with Tux Paint
 + Test!
2023-02-10 01:58:49 -08:00
Pere Pujal i Carabantes
102bb825aa Adding progressbar to the Rush magic tool. 2023-02-10 00:47:23 +01:00
Pere Pujal i Carabantes
f530236f86 New starter space_draw.svg by Ingrid Illa Terrier. 2023-02-09 00:48:18 +01:00
Bill Kendrick
319647a152 Docs: Magic: Flower: Mend typo 2023-02-08 12:10:42 -08:00
Bill Kendrick
996b09e508 Magic Bloom: Add sound effect
Source https://freesound.org/people/kentnelson64/sounds/647221/
("This work is licensed under the Creative Commons 0 License.")
2023-02-07 01:42:52 -08:00
Bill Kendrick
29d7d28614 Bloom: Show progress bar while working 2023-02-07 01:27:11 -08:00
Bill Kendrick
7d8cefe6d7 Sync'ing docs to get "Bloom" magic tool 2023-02-07 01:14:42 -08:00
Bill Kendrick
f4b8032d18 Magic Bloom: Descriptions & icon 2023-02-07 01:02:24 -08:00
Bill Kendrick
948158c1fd WIP "Bloom" magic effect. Mend crash in "perspective.c" 2023-02-06 02:22:21 -08:00
Bill Kendrick
65da4f4df4 Moving "Rivulet" magic src to a WIP subdir
Not ready for production.
2023-02-05 19:50:24 -08:00
Bill Kendrick
89b6df98a4 Maze magic: Increase iteration limit
h/t Pere
2023-02-05 00:06:37 -08:00
dolphin6k
254fe65b20 Updated Japanese for new magic tools 2023-02-04 12:24:40 +09:00
Pere Pujal i Carabantes
851ff2c884 Updating Catalan. 2023-01-30 13:41:19 +01:00
Bill Kendrick
1687fd4de1 Magic Fur: Sound effect 2023-01-30 00:35:19 -08:00
Bill Kendrick
6161ebe59a Doc'ing Fur magic tool in CHANGES & AUTHORS
Also, moving to "Paint" group (the other two remain in "Distorts")
2023-01-29 22:18:59 -08:00
Bill Kendrick
034cbf5b5a Refresh POT/PO for Circles, Rays, Fur magic tools 2023-01-29 21:55:29 -08:00
Bill Kendrick
0d8c69160d Adding Magic Fur docs 2023-01-29 21:54:26 -08:00
Bill Kendrick
2f8f52917c WIP Fur magic tool
Needs changelog, docs, authors, sound effect, icon.
2023-01-29 21:16:12 -08:00
Bill Kendrick
2a7b00da49 Circles/Rays magic: correct one-off bug in description arrays 2023-01-29 00:54:29 -08:00
Bill Kendrick
e8cd0fd726 Maze magic: Amplify sound effect 2023-01-28 23:25:02 -08:00
Bill Kendrick
b9e5d59dad New magic tools: Circles, and Rays
Convert the image into circular or ray brushstrokes.

Inspired by "Night Sky Scene [Pen Parallax]" Scratch Project
by -HexaScape- <https://scratch.mit.edu/users/-HexaScape->

Sound effects based on Richard Wagner's "Ride of the Valkyries"
licensed as Creative Commons Attribution 3.0 Unported (CC BY 3.0)
by https://pmmusic.pro/; conducted by Philip Milman.

h/t my son William for pointing out the Scratch project
2023-01-28 23:12:28 -08:00
Bill Kendrick
7f93f243c1 Maze magic: ATTRIBUTE_UNUSED adjustments 2023-01-28 21:30:38 -08:00
dolphin6k
0f27735ce7 Updated Japanese translations 2023-01-28 14:48:45 +09:00
Bill Kendrick
29a2d148b2 Maze magic tool - sound effect 2023-01-26 21:57:56 -08:00
Bill Kendrick
49f70c60d8 Magic Maze: Icon 2023-01-26 01:08:22 -08:00
Bill Kendrick
c7b0c78fb9 Sync docs: Grab Magic API set_color() change 2023-01-25 02:25:43 -08:00
Bill Kendrick
3b1c26c93d Update all other Magic tools' "set_color()"
FIXME: This loses "ATTRIBUTE_UNUSED" where they existed, and also
all of the files committed here need that compiler hint added to
all of the new arguments ('canvas', 'last', etc.) since they
obviously don't use them either.
2023-01-25 02:15:19 -08:00
Bill Kendrick
34de8311db Zoom/Perspective: Support background color changes
When in the middle of adjusting a drawing with Zoom or Perspective,
you could change the color.  However, the background would not
relfect this until you further adjusted the zoom/perspective.

Now, a color change causes the background to update immediately.

This involved updating the Tux Paint Magic API to send more
arguments to each Magic tool's "XYZ_set_color()" function,
which means a bump in the API version.

(Forthcoming, all other Magic tools will have their set_color()
functions updated.)
2023-01-25 02:12:57 -08:00
Bill Kendrick
5e829819aa WIP: Perspective & Zoom magic immediate color change support 2023-01-25 01:19:42 -08:00
Bill Kendrick
999e0c873e Maze magic: Got contiguous-or-not working right 2023-01-25 01:12:18 -08:00
Bill Kendrick
bf7e8897d6 Remove unfinished "Label" text on New or Open
Text from unfinished "Label" tool input would appear after
creating a New image or Opening an existing one.  Mended.
Closes https://sourceforge.net/p/tuxpaint/bugs/246/

Mostly by Pere.
2023-01-23 22:04:00 -08:00
Bill Kendrick
2e69c51bdb WIP: Maze: Allow multiple discontiguous zones 2023-01-23 02:48:56 -08:00
Pere Pujal i Carabantes
32dc277133 Updating Catalan 2023-01-21 23:44:31 +01:00
Bill Kendrick
dbb9157ca7 Doc'ing what's needed for current WIP Magic tools 2023-01-21 03:24:55 -08:00
Bill Kendrick
aa35d18927 Doc'ing new "Maze" magic tool 2023-01-21 03:23:18 -08:00
Bill Kendrick
3ba15f7b70 Update POT/PO after adding Maze magic tool strings 2023-01-21 03:06:00 -08:00
Bill Kendrick
c15b6a176c WIP: "Maze" magic tool 2023-01-21 03:05:24 -08:00
Bill Kendrick
a979ada66e Rivulet: Slight improvement to brush images
Still think I need to redesign how this works :/
2023-01-21 01:24:48 -08:00
Bill Kendrick
51c270b519 Avoid window larger than sole display size is capable of
If only one display is available, when running in windowed mode
and asking for Tux Paint to appear in a width and/or height larger
than the display's dimensions, Tux Paint will fall back to
the maximum(s) the display is capable of.

e.g., on my laptop with 1920x1080, running "tuxpaint --2048x2048"
will fall back to 1920x1080 (and display a warning to stdout).
However, if I have my external monitor (also 1920x1080) attached,
it will happily open a 2048x2048 window.  Not perfect, but an
improvement.

Closes https://sourceforge.net/p/tuxpaint/feature-requests/113/
2023-01-19 00:56:07 -08:00
Bill Kendrick
949438e2fb Bring back support for SDL_VIDEO_WINDOW_POS envvar
SDL1.2 supported "SDL_VIDEO_WINDOW_POS" environment variable,
but SDL2 does not; so reimplemented it ourselves. (See ENVARS docs.)
2023-01-19 00:18:52 -08:00
Bill Kendrick
d87497e168 Rivulet - More WIP 2023-01-17 01:09:08 -08:00
Bill Kendrick
bdbc8898ac POT/PO update after adding Rivulet magic 2023-01-16 17:28:51 -08:00
Bill Kendrick
2c03bdd8a4 Rivulet: More WIP 2023-01-16 17:28:21 -08:00
Bill Kendrick
1f8de8af83 Rivulet: More WIP 2023-01-16 17:06:49 -08:00
Bill Kendrick
7168fb94a5 Merge branch 'master' of ssh://git.code.sf.net/p/tuxpaint/tuxpaint 2023-01-16 16:28:23 -08:00