google-code-export / nekonme

Automatically exported from code.google.com/p/nekonme
1 stars 0 forks source link

drawing "donut" paths fills too much #281

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. drawing a GraphicsPath that is like a donut shape, it has holes inside the 
filled area.

What is the expected output? What do you see instead?
Expected to look like flash, see attached "reallyok.tiff"
Instead gets filled in, see attached "notok.tiff"

What version of the product are you using? On what operating system?
haxe 2.10
hxcpp 2.10.2
nme 3.4.4
mac os x 10.7.5

Please provide any additional information below.
this bug has been around since 3.3.0 i think.

Original issue reported on code.google.com by rao...@gmail.com on 7 Dec 2012 at 12:29

Attachments:

GoogleCodeExporter commented 9 years ago
Note that when i say 'draw' i mean 'fill'. When i draw as outlines they are ok. 
So it seems to be something about the floodfill-or-whathaveyou code. It 
reproduces with neash, but not with flash. (btw, jeash is actually even worse 
off, sadly mostly the shapes don't even show up at all.)

Original comment by rao...@gmail.com on 7 Dec 2012 at 12:31

GoogleCodeExporter commented 9 years ago
Hi
Could you please post a snippet of source code - or are you using swf?

Original comment by gameh...@gmail.com on 9 Dec 2012 at 1:55

GoogleCodeExporter commented 9 years ago
sorry, apologies, right now i don't have a good small complete example, the 
code is convoluted, going from svg paths to nme/flash paths.

all code, no swfs anywhere in the entire project. anyway it ends up doing the 
final drawing with regular Flash apis: GraphicsPath, moveTo(), lineTo(), then 
graphics.drawGraphicsData().

see how the 'A' and the 'O' have empty middles in Flash, but are filled all the 
way in in neash? the way i work around it so far is to use a "stencil" font, by 
the way.

Original comment by rao...@gmail.com on 10 Dec 2012 at 6:10