Commit graph

275 commits

Author SHA1 Message Date
Bill Kendrick
c1a5ca7fb8 New Magic tool: "Tile Zoom" 2022-01-30 02:23:01 -08:00
Bill Kendrick
03b3ada567 More tools' fullscreen: update progress bar
Progress animation shown during
Emboss, Sharpen/Edge/Silhouette, Blur,

Also, play Glass Tile sound in fullscreen mode.
2021-11-08 20:46:24 -08:00
Bill Kendrick
83558f8343 Cartoon fullscreen: play sound, show progress bar 2021-11-08 20:37:19 -08:00
Bill Kendrick
cde0941509 Blocks/Chalk fullscreen; play sound, add prog bar 2021-11-08 20:33:57 -08:00
Bill Kendrick
50d296b393 Mend typo in Lightning magic tool's description 2021-11-07 20:32:20 -08:00
Bill Kendrick
e3c7b3b5e7 Halftone was coming out too dark
Not sure what I broke, but attempting to fix it.
2021-11-07 19:51:08 -08:00
Bill Kendrick
760423e84f New Magic tool: Reflection
Click to make a reflection of what's above the cursor,
below the cursor.

Click and drag down to stretch the lower reflection, or
drag up to make an reflection of the bottom of the picture
above where you clicked.

Or, drag left or right to make a reflection on the left of
what's on the right, or vice-versa.

It's not perfect, but my math skills are failing me, and it's
probably suitable.

Demo videos posted to Twitter
 * https://twitter.com/TuxPaintTweets/status/1456541738667954181
 * https://twitter.com/TuxPaintTweets/status/1456542229376294924

Closes https://sourceforge.net/p/tuxpaint/feature-requests/202/
2021-11-05 01:31:53 -07:00
Bill Kendrick
307680a684 Mend unused attribute warning
Noted in a commit by Shin-ichi
2021-11-04 20:41:25 -07:00
Bill Kendrick
a68ff27e84 Cartoon can apply effect to entire image
This is now how the effect starts; painting now simply exposes
the effect (to avoid artifacts that occurred when you'd paint
different directions).
2021-10-27 22:52:02 -07:00
Bill Kendrick
27b89d0dba Blocks/Chalk: Full-image descriptive text 2021-10-27 22:24:13 -07:00
Bill Kendrick
3fad8fc75b Blocks & Chalk can now affect entire image at once 2021-10-27 22:18:09 -07:00
Bill Kendrick
5f9ff7e97d Address tons of warnings in magic/src/lightning.c 2021-10-24 01:15:46 -07:00
Bill Kendrick
d27c21bf2a Mend compiler warnings in magic/src/halftone.c 2021-10-24 01:07:29 -07:00
Bill Kendrick
1135225691 New "Stretch" magic tool
Docs/etc. to be updated in a separate commit.
2021-10-20 22:32:34 -07:00
Pere Pujal i Carabantes
85bf1dc181 Panels do not use colors, new string for fullscreen mode Halftone. 2021-10-06 00:31:57 +02:00
Bill Kendrick
e7c7a51a00 Lightning Magic tool looking good
Could be better, but it's a start.
2021-09-27 00:53:01 -07:00
Bill Kendrick
4965cc95f1 Angle calculation for WIP Lightning effect 2021-09-26 23:34:49 -07:00
Bill Kendrick
2bd9b74dd6 WIP Lightning Magic tool
UI, icon, sfx working; not actually rendering the bolt yet.
2021-09-26 22:50:41 -07:00
Bill Kendrick
8b30a278c2 "Smooth Rainbow" magic tool (variant of "Rainbow")
Numerous people commented on Twitter that a piece of artwork
("Chromie Squiggle #7583", created in "ArtBlocks") looked like it
was made in Tux Paint.

However, the classic (2002-era) "Rainbow" tool cycled coarsely
through solid colors.  This adds a gradient.
2021-09-22 23:01:26 -07:00
Bill Kendrick
1d5dd8eb9f Finished organizing Magic tools; updated docs
Added group code to `tp_magic_example.c`, and documented
in the "Creating Tux Paint Magic Tool Plugins" docs.
2021-09-21 01:02:22 -07:00
Bill Kendrick
5882a48412 Even more Magic tools to their groups...
Nearly done.
2021-09-21 00:32:19 -07:00
Bill Kendrick
f381073d48 Putting more Magic tools into groups... 2021-09-21 00:24:26 -07:00
Bill Kendrick
448a4b4487 Put more Magic tools into their groups
...WIP
2021-09-21 00:07:14 -07:00
Bill Kendrick
12b503be9c Adding more Magic tools to their groups...
WIP
2021-09-20 23:47:31 -07:00
Bill Kendrick
3963d74f43 Show Magic tool group pagination buttons
Make room for them, but they don't do anything yet.
2021-09-20 23:36:19 -07:00
Bill Kendrick
3eece8635c WIP Working on Magic tool grouping
Fretwork is in one group; Blocks, Chalk, and Drip in another.
The rest do not currently report (so will not load!).
No UI change to the Magic tool interface yet.
2021-09-20 23:09:33 -07:00
Bill Kendrick
8f31459990 "TV" Magic Tool enhancement
"TV" now breaks pixels into red/green/blue components,
rather than merely adding a 'scanline' effect.

Reworked how it handles interaction (click/drag vs fullscreen).
2021-09-20 22:28:29 -07:00
Bill Kendrick
b82214c19c Emboss can now effect the entire canvas at once
h/t @jpeg2k on Twitter for reminding me!
2021-09-18 00:27:54 -07:00
Bill Kendrick
fa23c099f2 "Opposite" Magic tool: Complementary colors
Closes https://sourceforge.net/p/tuxpaint/feature-requests/136/
2021-09-06 01:36:08 -07:00
Bill Kendrick
f6c74f897e "Halftone" can now affect the entire image at once 2021-09-04 23:28:33 -07:00
Bill Kendrick
c5fd47b1af "Halftone" works much better 2021-09-04 16:25:19 -07:00
Bill Kendrick
82f1abb27f "Negative" magic tool: play sound in fullscreen
Was only playing in paint mode.
2021-09-04 14:33:59 -07:00
Bill Kendrick
8d67915b3e "Panels" magic tool; convert image to 2x2 repeat
Useful for making 4-panel comics; or repeat multiple times to
create a compound-eye effect.

Closes https://sourceforge.net/p/tuxpaint/feature-requests/204/
2021-09-04 14:28:01 -07:00
Bill Kendrick
485723d0e4 Clone tool: Displaying a crosshair at source
A crosshair appears when you first click, to show the source
position.  It then moves along with the source, as you drag
after the second click (moving relative to the mouse).
2021-02-20 15:33:56 -08:00
Bill Kendrick
d588e5d214 Halftone magic tool wasn't loading...
... due to a problem with its sound effect file.
2021-02-20 15:14:31 -08:00
Bill Kendrick
67b05a0579 Slight cleanup of blind.c; new Checkerboard tool
Use enums everywhere; credits/copyright clean-up.
2021-02-15 23:19:21 -08:00
Bill Kendrick
cea4c3f87e Adding sound effects to Clone tool
Source https://commons.wikimedia.org/wiki/File:Sheep_bleating.ogg
(Public domain)
2021-02-10 23:59:57 -08:00
Bill Kendrick
1cb04f1e0a "Clone" magic tool 2021-01-10 22:46:34 -08:00
Bill Kendrick
4049b6cbbc New magic tool: Pixels
Suitable for simple 'pixel art'.  Draws 8x8 pixel rectangles on
a grid across the canvas.

Sound effect created via a small Atari BASIC program sampled in
the open source 'Atari800' emulator (emulating the POKEY sound
chip), and trimmed in Audacity.
2021-01-06 23:02:11 -08:00
Bill Kendrick
2911b35a50 Elevate "Fill" from Magic Tool to real Tool
Replace the somewhat-recently-added "nothing" item in the tool bar
with the "Fill" tool, which has been converted back from a Magic tool
to a regular tool.

Also, change bash "==" to sh "=" in "if [ ... ]" tests in Makefile.

Also, link to math library (via "-lm") to make sure "max()" is available to
magic tools.

Also, add missing mention of "--newcolorslast" and "--newcolorsfirst" to manpage.
2019-09-12 23:04:13 -07:00
Bill Kendrick
7938480174 Clean up GCC warnings (2019-08-29 edition)
Updated most parts of the code that were throwing warnings in GCC.
2019-08-30 00:01:00 -07:00
Bill Kendrick
4ab8280bbe indent xor.c 2017-10-15 11:51:27 -07:00
Bill Kendrick
5a88d476c8 indent waves.c 2017-10-15 11:51:22 -07:00
Bill Kendrick
cc7dd8e3c9 indent tv.c 2017-10-15 11:51:18 -07:00
Bill Kendrick
011f7f27c1 indent tornado.c 2017-10-15 11:51:13 -07:00
Bill Kendrick
cf3173690d indent toothpaste.c 2017-10-15 11:51:10 -07:00
Bill Kendrick
5871ef9b3a indent tint.c 2017-10-15 11:51:06 -07:00
Bill Kendrick
d311aeb236 indent string.c 2017-10-15 11:51:02 -07:00
Bill Kendrick
29b25992ad indent snow.c 2017-10-15 11:50:59 -07:00
Bill Kendrick
6071c06c06 indent smudge.c 2017-10-15 11:50:37 -07:00