Commit graph

768 commits

Author SHA1 Message Date
Bill Kendrick
13ce7287c8 Sync docs after doc'ing "Rotate" 2024-09-25 00:18:13 -07:00
Bill Kendrick
0c59e83dba "Rotate" icon 2024-09-25 00:09:17 -07:00
Bill Kendrick
9d169fec58 "Rotate" magic - add indicator lines during active use 2024-09-25 00:04:54 -07:00
Bill Kendrick
4ee781c6de "Rotate" sound effects 2024-09-24 23:55:37 -07:00
Bill Kendrick
23a82cef5a WIP "Rotate" magic tool
Rotates the canvas
2024-09-24 23:36:22 -07:00
Bill Kendrick
57a1365382 Syncing docs; grab Fractal magic tool docs 2024-09-23 23:34:09 -07:00
Bill Kendrick
259f423da9 Fractal -- sound & icon 2024-09-23 23:26:29 -07:00
Bill Kendrick
e7213eaaed Fractals: Descriptions of each (programmatic) 2024-09-23 22:57:40 -07:00
Bill Kendrick
ec835bb580 Multiple Fractal tools (WIP) & simpler preview
Starting with four tools:
 * No rotation, shrink to 50%
 * No rotation, grow to 150%
 * 15deg rotiation, grow to 110%
 * 90deg rotation, shrink to 75%

Don't redraw everything while sketching; do the recursive work once,
at the end (avoid CPU explosion).
2024-09-23 22:42:12 -07:00
Bill Kendrick
81ae8bdd36 Comic Dots: Return proper order
There are two tools, so can't use the same number twice!
2024-09-23 22:05:48 -07:00
Bill Kendrick
8a3d792025 Fractals: Squelch warnings; prepar for multiple tools 2024-09-23 21:59:29 -07:00
Bill Kendrick
56a57722b3 More work on Fractal magic tool 2024-09-23 21:51:40 -07:00
Bill Kendrick
bb8b1d6cfe WIP Fractal painter
Not working great yet, but a start
2024-09-19 00:52:09 -07:00
Bill Kendrick
628fa77f94 Don't call stopsound() in Magic shutdown()...
...causes a segfault at that point (Mixer already gone?!)
2024-09-17 22:25:36 -07:00
Bill Kendrick
00305ab31d Ran pngout on the new Comic Dots icon PNGs 2024-09-17 22:22:04 -07:00
Bill Kendrick
d6af2fa981 Icons for "Comic Dots" magic tools 2024-09-17 22:21:23 -07:00
Bill Kendrick
d94e85e26e Sound pause/unpause Magic API functions...
...plus documenting them.
...plus using them in new "Comic Dots" Magic tool.
2024-09-17 22:11:32 -07:00
Bill Kendrick
143b50733c Sound effect for new "Comic Dots" Magic tool 2024-09-17 21:35:09 -07:00
Bill Kendrick
61478d7858 Doc'ing new "Comic Dots" magic tool 2024-09-17 21:11:50 -07:00
Bill Kendrick
e8418cc330 WIP "Comic Dots" magic tool
For https://sourceforge.net/p/tuxpaint/feature-requests/257/
2024-09-16 23:56:33 -07:00
Bill Kendrick
d597a250cd Bump version to 0.9.34; sync docs for new version # 2024-07-26 00:44:42 -07:00
Bill Kendrick
3c5303563a WIP Dropping in code for Haiku trash can support
h/t Jérôme Duval <https://github.com/korli> for pointing us to this
(see https://github.com/haikuports/haikuports/issues/10568)
Code used is copyright (c) 2004, Francois Revol <revol@free.fr>,
provided under the MIT licence.

(Also, ran `indent.sh`)
2024-06-06 23:06:07 -07:00
Bill Kendrick
33db4c16f5 WIP Changes to support building for OS/2
+ WIP Makefile updates to support building for OS/2
   - TODO: Makefile needs SYSNAME test to detect OS/2 (Bill has asked Elbert)
 + Added "__declspec(dllexport)" (via new "TX_EXTERN" #define'd in
   `tp_magic_api.h`) to public function definitions in Magic tools
   - WIP: So far just "Mirror/Flip" plugin
   - TODO: Add "TX_EXTERN" prefix to all other public Magic tool functions
 + Renamed long Magic tool source files to have shorter filenames
   - WIP: So far just "Mirror/Flip" (`mirror_flip.c` -> `mirror_f.c`)
   - TODO: Rename all other magic tool source files.

h/t Elbert Pol for providing info and some diffs!
2024-06-06 00:40:42 -07:00
Bill Kendrick
2183c45d72 Filled Polygon: Ensure last point can click on first point
It had to be dragged, due to a minor bug.  h/t Pere.
2024-06-01 20:35:13 -07:00
Bill Kendrick
b9981d879b Filled Polygon Magic - allow up to 100 points
Up from 17 (which I probably picked since it was a little
fewer than the default number of Undo/Redo levels).
2024-06-01 20:27:30 -07:00
Bill Kendrick
3cf3af76aa Ran indent.sh 2024-06-01 02:12:00 -07:00
Bill Kendrick
01afb5846c api->retract_undo() added to Magic API; used by Filled Polygon
New API function which rolls back the Undo buffer (which is snapshotted
upon a mousedown event ahead of calling the Magic tool's `_click()`
function.)  Dangerous; use sparingly!

Filled Polygon uses this to prevent partially-created (aka unfinished
aka incomplete) polygons -- the preview lines and control points -- from
being recorded and wasting space in the Undo history, or reappearing
upon Redo.

TODO - Other tools (e.g., Clone) would certainly benefit from this.
TODO - Needs more testing to help identify any bugs/issues introduced
by this!
TODO - Magic API docs need updating.

This is probably a sufficient solution that will make
https://sourceforge.net/p/tuxpaint/feature-requests/246/,
'"Overlay" surface in Magic API', unnecessary.
2024-06-01 01:35:50 -07:00
Bill Kendrick
b0b3b64022 Filled Polygon: Mention merging. Max pt handling.
In instructions, mention that adjacent points may be merged.

When no more space is available for additional points, simply
move the last point to the new location (rather than silently
doing nothing).

h/t Pere for the ideas
2024-05-30 23:50:00 -07:00
Bill Kendrick
277b9e10bf Filled Polygon "remove" sound effect
For when merging points.

Based on CC Attribution 3.0 sound by "stinkhorn"
(see CHANGES.txt & AUTHORS.txt).
2024-05-28 23:59:56 -07:00
Bill Kendrick
c00cf991f9 Filled Polygon "nearby" sound effect
When red & green endpoint dots are being dragged near each other,
play a different sound.

Based on CC Attribution 4.0 sound by Eliot Lash
(see CHANGES.txt & AUTHORS.txt).
2024-05-28 23:47:54 -07:00
Bill Kendrick
a2fece280b Sound effects for Filled Polygon magic tool
Based on some CC0 sounds by Kenneth Cooney (see AUTHORS.txt and
CHANGES.txt).
2024-05-28 23:29:57 -07:00
Bill Kendrick
4c42472089 Polyfill: Draw handles 'behind' lines 2024-05-19 23:56:20 -07:00
Bill Kendrick
af5f9b8899 Removing Specular tool instructions 2024-05-19 23:34:12 -07:00
Bill Kendrick
97c547e9c7 Demoting Specular magic to a WIP 2024-05-19 23:30:12 -07:00
Bill Kendrick
4a79060f26 Ran indent 2024-05-14 23:37:12 -07:00
Bill Kendrick
ca537e2fbb Color Sep: Correctly abuse default size value 2024-05-14 23:26:00 -07:00
Bill Kendrick
d26b4f28ff Polyfill - Address compiler warnings, other cleanup 2024-05-14 23:09:18 -07:00
Bill Kendrick
5bdbc2766b Ran indent.sh to re-indent all source files 2024-05-10 00:26:10 -07:00
Bill Kendrick
fbb46751c6 Cleaned up compiler warnings in dither.c Magic tool 2024-05-10 00:16:17 -07:00
Bill Kendrick
1b5386fba1 Sync docs after 3D Glasses update 2024-04-29 00:54:09 -07:00
Bill Kendrick
d95e7084df 3D Glasses - Now offers various anaglyph color combos
The size option is being misused to allow different
color combinations: Red/Cyan, Red/Blue, Red/Green, and Magenta/Cyan
(there are others we could add, if only someone could figure out the
math :-D)

Note - If Tux Paint is running in "Novice" complexity mode, no choices
will be available; it will use Red/Cyan, as before.

h/t O'Hare The Rabbit for the idea
2024-04-28 18:03:28 -07:00
Bill Kendrick
a655146677 Syncing docs again, after wrapping up path nonsense 2024-04-27 13:45:41 -07:00
Bill Kendrick
ae899da68d Filled polygon: Icon; tweaked on-screen instructions 2024-04-12 09:24:19 -07:00
Bill Kendrick
f603adb648 Filled Polygon example image for docs 2024-04-12 09:18:56 -07:00
Bill Kendrick
14cabfcdc7 Sync docs after reorg'ing & adding Magic tools 2024-04-11 00:23:44 -07:00
Bill Kendrick
5139985781 Polygon fill: Be a better citizen
Remove our preview if switching out of the tool.
Do not wipe out previous work when switching into the tool
(it seems Tux Paint calls "set_color()" _before_ "switchin()"!?)
2024-04-08 20:55:27 -07:00
Bill Kendrick
ead268de51 Polyfill - Allow clicking first point to end polygon
...clicking, followed by dragging prior to releasing,
still works to move the first (green) point.
2024-03-28 00:50:27 -07:00
Bill Kendrick
da837a35a2 Polyfill filling polygons now
Scanline polygon fill routine based on public-domain code
by Darel Rex Finley, 2007 <https://alienryderflex.com/polygon_fill/
2024-03-28 00:26:05 -07:00
Bill Kendrick
608564b00f WIP Filled Polygon Magic tool
Currently able to add & adjust points, which forms a polygon.
It is not filled yet.
2024-03-27 23:41:41 -07:00
Bill Kendrick
a2d8b39e95 Dither icons compressed (pngout) 2024-03-19 23:34:24 -07:00