RSS/Atom feed Twitter
Site is read-only, email is disabled

problem drawing a path

This discussion is connected to the gegl-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

problem drawing a path Torsten Mohr 02 Feb 17:08
  problem drawing a path Ville Sokk 04 Feb 14:49
Torsten Mohr
2013-02-02 17:08:55 UTC (about 12 years ago)

problem drawing a path

Hello,

I'm trying to draw a path based on an XML example, i try to draw a line in a 320x320 gray image:



rgb(1.0, 0.0, 0.0)
rgb(1.0, 1.0, 1.0)
15.0
0.5
1.0
M100 0 L 100 320




320.000000
320.000000




rgb(0.5, 0.5, 0.5)

gegl file.xml -o test.png

I can't reproduce what i get as a result, i can see a gray background, but i can't see no line. Also, there are two stripes with just Alpha shown at the top and the bottom of the image.

I did not find any example XML that uses gegl:path, also i did not find information about the format of the path, i assumed SVG format.

Can anybody explain the output i see from my XML?

Is there an example that uses gegl:path?

I did not find any explicitly described way to create an image in memory, are the last two nodes the preferred way to create a gray image of 320x320?

Thanks for any hints Torsten

Ville Sokk
2013-02-04 14:49:26 UTC (about 12 years ago)

problem drawing a path

On Sat, Feb 2, 2013 at 7:08 PM, Torsten Mohr wrote:

Hello,

I'm trying to draw a path based on an XML example, i try to draw a line in a 320x320 gray image:



rgb(1.0, 0.0, 0.0)
rgb(1.0, 1.0, 1.0)
15.0
0.5
1.0
M100 0 L 100 320




320.000000
320.000000




rgb(0.5, 0.5, 0.5)

gegl file.xml -o test.png

I can't reproduce what i get as a result, i can see a gray background, but i can't see no line. Also, there are two stripes with just Alpha shown at the top and the bottom of the image.

I did not find any example XML that uses gegl:path, also i did not find information about the format of the path, i assumed SVG format.

Can anybody explain the output i see from my XML?

Is there an example that uses gegl:path?

I did not find any explicitly described way to create an image in memory, are the last two nodes the preferred way to create a gray image of 320x320?

Thanks for any hints Torsten

In bin/gegl.c there's a #define called DEFAULT_COMPOSITION that uses gegl:fill-path. That's an example of how vectors are described.