Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Tk::Zinc based geometry puzzles

by zentara (Archbishop)
on Apr 22, 2008 at 16:25 UTC ( [id://682208]=note: print w/replies, xml ) Need Help??


in reply to Tk::Zinc based geometry puzzles

One suggested improvement..... on my screen, some of the line segments on some of the items, vary in thickness by a pixel ( a section looks thicker than the rest). You can take advantage of the bezier smoothing of the curves ( all lines in Zinc are just straight curves ), by adding smoothrelief
$current = $zinc->add( 'curve', 1, [@points], -closed => 1, -visible => 1, -filled => 1, -fillcolor => $color, -smoothrelief => 1 # add this );

I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Replies are listed 'Best First'.
Re^2: Tk::Zinc based geometry puzzles
by thundergnat (Deacon) on Apr 22, 2008 at 23:10 UTC

    Hmmm. It doesn't seem to make any change for me, then again, I'm not seeing that effect on my system. It doesn't seem to hurt either so it's probably worth adding for the people it helps. Thanks.

      Yeah, the strangness was random depending on how the items were placed and rotated, it only happened on occaision, and not always to the same item. What would happen, was that the line segment of a triangle side, would be 2 pixels wide at it's center region, but only 1 pixel near it's end points. Or, there might be a slight stair-stepping effect if the angle was right. Maybe it's my video card?

      I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://682208]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found