Bug 715018 - Developer documentation on VBRs incorrect

Fix the order of fields, and improve some other parts.

(cherry picked from commit a7e9016f11)
This commit is contained in:
Michael Natterer
2013-11-22 20:47:16 +01:00
parent 34cef1f372
commit b6f7826f30

View File

@ -11,10 +11,11 @@ has been tweaked several times. The most recent tweak, in August
version number used was always 1.0. The version number used for
shaped brushes is 1.5.
VBR files are ASCII, consisting of a set of fields separated by line
breaks. The number of lines is variable, 10 if the brush is "shaped",
8 otherwise. All numerical fields are in float format, except the
number of spikes (for shaped brushes), which is an integer.
VBR files are plain text tiles, consisting of a set of fields
separated by line breaks. The number of lines is variable, 10 if the
brush is "shaped", 8 otherwise. All numerical fields are in float
format, with a dot as decimal separator, except the number of spikes
(for shaped brushes), which is an integer.
Non-shaped brushes:
@ -45,16 +46,16 @@ Line 2: Version number, always "1.5".
Line 3: The name of the brush. This is a UTF-8 string, with a maximum
length of 255 bytes.
Line 4: A string giving the shape of the brush. Currently "Circle",
"Square", and "Diamond" are supported. The possible shapes
Line 4: A string giving the shape of the brush. Currently "circle",
"square", and "diamond" are supported. The possible shapes
are defined by the GimpBrushGeneratedShape enum in
core-enums.h.
Line 5: The brush spacing.
Line 6: The number of spikes for the shape.
Line 6: The brush radius, in pixels.
Line 7: The brush radius, in pixels.
Line 7: The number of spikes for the shape.
Line 8: The brush hardness.