[PD-dev] turn on anti-aliasing for one Tk "create"
Hans-Christoph Steiner
hans at eds.org
Mon Jan 8 18:26:33 CET 2007
On Jan 7, 2007, at 2:59 PM, carmen wrote:
> On Sun Jan 07, 2007 at 02:47:05PM -0500, Hans-Christoph Steiner wrote:
>>
>> Is it possible to turn on anti-aliasing for one Tk "create"
>> command? If so, it would be easy to make the patch coords and the
>> circle in the bang anti-aliased, while the boxes remain crisp.
>
> normal Tk doesn't do antialiasing. with tkPath you can get
> antialiasing on the default widgets by replacing [line] with
> [pline] [poly] with [ppoly] etc (names not exact), it runs on
> CoreGraphics/GDI+/X(Cairo) at least...which means all platforms PD
> can run on ..
I can make all of the lines, rectangles and ovals anti-aliases on Tcl/
Tk 8.4 on Mac OS X using this:
set tk::mac::CGAntialiasLimit 2
If I set that to 0, then all lines are anti-aliased.
.hc
>
>>
>> .hc
>>
>> ---------------------------------------------------------------------
>> ---
>>
>> Terrorism is not an enemy. It cannot be defeated. It's a
>> tactic. It's about as sensible to say we declare war on night
>> attacks and expect we're going to win that war. We're not going
>> to win the war
>> on terrorism. - retired U.S. Army general, William Odom
>>
>>
>>
>> _______________________________________________
>> PD-dev mailing list
>> PD-dev at iem.at
>> http://lists.puredata.info/listinfo/pd-dev
>>
>
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev
------------------------------------------------------------------------
As we enjoy great advantages from inventions of others, we should be
glad of an opportunity to serve others by any invention of ours; and
this we should do freely and generously. - Benjamin Franklin
More information about the Pd-dev
mailing list