The following features were implemented last night and will be available,
in Tux Paint 0.9.16!
There are new options available for creating brushes. You can create a
".dat" text file for the brush (e.g., "my_brush.dat" for "my_brush.png')
to activate one or more the following features:
* Animated Brushes
----------------
Draw various shapes, evenly spaced across a PNG image, and Tux Paint will
cycle through them as it paints with the brush.
Add a line with "frames=N" to the data file, where N is the number of frames.
Example: Say you have three frames of a spinning triangle in a 30x30 area:
The image should be 90x30 in size, with the three triangle shapes
positoned evenyl across the image, and "frames=3" should be added
to the ".dat" file.
* Directional Brushes
-------------------
Draw nine different shapes, in a 3x3 grid in your PNG image, and Tux Paint
will use different ones depending on the direction the brush is being
drawn (i.e., by the mouse or by the 'Lines' tool).
Add a line containing the word "directional' to the data file.
Example: Say you want to be able to paint a 40x40 racecar shape as the mouse
is moved, with the car going the same direction as the brush stroke:
The image should be 120x120 in size, with the car going 'north' drawn in
the top-center section of the PNG, the car going south west in the
bottom-left section, and so on. (The very center is used for no motion
-- e.g., a single 'Paint' tool click.)
* Spacing adjustements
--------------------
Previously, Tux Paint spaced brushes based on the PNG's height, divded by 4.
You can now override this by adding a line to the brush's data file.
Add a line with "spacing=N" to the data file, where N is the spacing
you want between brush strokes.
0 or 1 means 'constantly paint'. Higher numbers space the brush
strokes further apart. If it's the same size as the brush's width
and/or height, the strokes will be next to each other.
Make N even twice that for a dotted-line effect.
Example: In the racecar example above, you probably don't want cars
blending together as you paint. Set the spacing to at least 40 (the size
of the racecar shapes) so that they don't overlap when you use the brush.
* Colored Brush Details
---------------------
Finally, any color (non-greyscale) pixels in PNGs are utilized.
(Before, the color/detail was ignored, and ONLY the alpha transparency
was used.)
Pixels which aren't greyscaled are now tinted[*], rather than drawn as
a solid on/off version of the currently-selected paint color in Tux Paint.
Three new brushes have been added (so far) that demonstrate these new
features:
* "lines-angled" - Directional
Draws "|||" when you move left/right, "==" when you draw up/down,
"//" and "\\" when you draw diagonally.
* "vines" - Animated, color
Draws various patterns of vine leaves, allowing you to easily
create a bushy texture. (This is stolen from The GIMP's brushes.)
* "squirrel" - Animated, directional, color, spacing
YES! You can have animated, directional brushes! This cycles between
three frames of a little cartoon squirrel running around. It runs in
the direction you're painting. They're spaced apart such that you
end up with what looks like a trail of squirrels chasing each other!
Enjoy! :)
[*] The Red, Green and Blue values of the PNG's pixels are currently
simply averaged together with the Red, Green and Blue values of the
currently-selected paint color in Tux Paint.
--
-bill!
bi...@ne...
http://www.newbreedsoftware.com/
|