BezierPenTool

Experimental projects, hacks, and other exploration of what is possible with SuperCard. Graphic files and .zip archives only.
Forum rules
Help keep this area clean by deleting attachments from existing posts that have been updated, or are no longer relevant.

Re: BezierPenTool

Postby sctell » Mon May 02, 2011 1:24 am

Hi,

Here are two screen captures one with THGraphics adjusted to fill with:

NSImageInterpolationHigh & setShouldAntialias = YES

and one with

NSImageInterpolationNone & setShouldAntialias = NO

With Antialiasing.png
With Antialiasing.png (52.87 KiB) Viewed 10329 times


No Antialiasing.png
No Antialiasing.png (33.94 KiB) Viewed 10329 times


It does not seem to cure the issue but is slightly better with regard to the moire pattern but is worse in other edge effects.
sctell
 
Posts: 1128
Joined: Sun Jul 06, 2008 10:41 am

Re: BezierPenTool

Postby gonetriadrr » Mon May 02, 2011 11:13 am

Dan_Kelleher wrote:And regarding a completely different subject: Can cursor resources be created in SuperEdit ?
How did you build all those cursors ?

When I have time I'll use SuperEdit to compose a list of images of the many BezierPenTool cursors and their names because I think it would help in discussing use of BezierPenTool.

Unless you already have such a list ?

Thank you for the Instructions on using BezierPenTool you gave on April 4. I have used them and I have some questions and comments but I've had no time to compose them.

David's instructions (see above, April 4) referred to the 3 paths in version BezierPenTool-3g (the film example).
-Dan


You mean, 'How did i steal all those cursors?' :D
Most cursors 'borrowed' from other apps and simply copied into into the appropriate fork.
That being said, i't wouldn't be too difficult to make a pure SuperTalk cursor editor/creator.

The help palette window that appears when project is first launched should include most cursor images & descriptions of what they mean. Just have to scroll down past the update details.
Though some are surly out of date.
I need to take time to update the help info and create a tutorial.

Keep in mind that command, command-shift, and command-option-shift modifier keys frequently modify behavior while clicking and/or dragging.

Correction... command & command-shift modify selection behavior.
Option, shift, & option-shift modify drag behavior. Particularly while dragging 'anchor handles' to reshape a curve segment.


DCS
Last edited by gonetriadrr on Tue May 03, 2011 3:05 am, edited 1 time in total.
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: BezierPenTool

Postby gonetriadrr » Mon May 02, 2011 11:34 am

sctell wrote:Hi,

Here are two screen captures one with THGraphics adjusted to fill with:

NSImageInterpolationHigh & setShouldAntialias = YES

and one with

NSImageInterpolationNone & setShouldAntialias = NO

It does not seem to cure the issue but is slightly better with regard to the moire pattern but is worse in other edge effects.


Terrific!
I've already planned for this.
Should be able to cure banding by increasing the number of steps in the transition. That may have made the antialiasing issue more difficult to see so didn't in the example.

Will still limit number of steps in the native mode, then recalculate at higher step count at render.

As for the un-antialiased edges...
The 2 source paths for the 'gradient blend' are hidden after the 'blended polgons' are created.
So, will create an intermediate render image file with antialiasing off, then complete by clipping that file to the 'gradient blend' source paths with antialiasing on. That should cleanup the edges nicely.

Thanks! Made my day!
DCS
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: BezierPenTool

Postby gonetriadrr » Wed May 04, 2011 11:51 am

sctell wrote:Hi,

Here are two screen captures one with THGraphics adjusted to fill with:

NSImageInterpolationHigh & setShouldAntialias = YES
and one with
NSImageInterpolationNone & setShouldAntialias = NO

It does not seem to cure the issue but is slightly better with regard to the moire pattern but is worse in other edge effects.


Does appear to be a complete cure for opaque blends.
Which points to a complete solution for transparency, applying an alpha mask. I'm fairly certain i can prototype that.

DCS
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: BezierPenTool

Postby gonetriadrr » Mon May 09, 2011 1:02 pm

Updated file attached to original post.

Fixes one longstanding ImageScale tool bug.

GradientFill palette now more closely modeled after Illustrator 10.

Illustrator Importer... Mapping of Illustrator blends to gradient fills improved.
Included a Illustrator eps to test. Plus a pdf of same to gauge import result.
Note: As previously stated importer based on AI7 format specification. Does not support compressed or pdf format ai files. Does not yet parse pattern fills (next on list). Will likely never parse for text, graphs or tables.

DCS
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: BezierPenTool

Postby gonetriadrr » Thu Dec 01, 2011 3:11 pm

New update attached to first post of this thread.

Still chock full of bugs and partially compete features.

Modifications of note:
Pen Tool:
Option-click/drag to begin a new path polygon.

Glyph Tool:
Removed unnecessary Adobe PDF print driver requirement when converting a font for use with this tool.
Fixed accent positioning in composite glyphs... Eacute, etc.

Layers Palette:
Reversed list order... topmost path polygon listed at top.
Reworked dragNdrop reordering script.

Colors Palette:
Added HSV, HSL, CMYK and LAB pickers.

Appearance Palette:
Added rendering specific line appearance properties... lineCap, lineJoin, dash spec & dashPhase.

Tools Palette:
Tool selection icons (incomplete).

DCS
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: BezierPenTool

Postby gonetriadrr » Thu Dec 29, 2011 8:19 am

Seeking feedback.
Trying to get motivated to spend some time on a few major enhancements.
Among them, glyph warping. But have no confirmation that the glyph tool functions with OS > 10.4.11.
Comments, questions welcome.

Thanks!
DCS

PS: To clarify, i'm interested to know if the glyph tool's font converter works with newer OS as CUPS distribution with newer OS may differ from that shipped with 10.4.
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: BezierPenTool

Postby gonetriadrr » Sat Dec 31, 2011 1:38 pm

Update "3m" attached to first post of this thread.
Bug fix update.

Adds in-place editing of oval, polygon, star & sprial style polygons.
Left spiral polygon in drawing window for testing.

See update info in "help" palette for more info.

DCS
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: BezierPenTool

Postby gonetriadrr » Tue Jan 03, 2012 10:42 am

Another bug fix update attached to first message of this thread.

Fixed reversed stacking order when rendering.
Fixed a Layers palette drag reorder bug that could result in never ending repeat loop.

Have alpha via image mask working (but not completely implemented), which allows simplified construction of transparent shaped blends.

DCS
Attachments
z.png
shaped blend with transparency.
z.png (21 KiB) Viewed 10095 times
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: BezierPenTool

Postby gonetriadrr » Sun Jan 08, 2012 7:36 am

Update (version '3o') attached to first post of this thread.

Additional Oval, Polygon, Star & Sprial style options.
Streamlined in-place edit target selection while using these tools.
More bug fixes.

DCS
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: BezierPenTool

Postby gonetriadrr » Fri Jan 13, 2012 12:14 pm

Update (version 3p) attached to first post of this thread.

More script error throwing bugs fixed.

First stab at adding path based radial blends to 'gradientfill' palette.
No speed demon.
Examples below.
z2.png
z2.png (19.27 KiB) Viewed 10045 times

z1.png
z1.png (19.95 KiB) Viewed 10045 times


DCS
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: BezierPenTool

Postby gonetriadrr » Tue Jan 24, 2012 9:03 am

update '3q' just posted.

A bunch of bug fixes.

Gradient fill palette's 'radial blend test' button:
Fixed premultiplied to black alpha issue.
If the current tool is oval, polygon, star, or spiral... the path of that tool's preview graphic is used instead of the default circular path.

Pen tool no longer requires option key to be depressed to begin a new path.

Render and Appearance tools reworked to take better advantage of features available via Terry Heaford's THGraphics external:
Can define most available options globally and locally (per-path).
Define shadows of lines and fills independently (global and per-path).
z.png
path with different shadow specs for fill & stroke
z.png (7.58 KiB) Viewed 10004 times


Can edit the custom clut used by this project via dragNdrop.
Forgot to add script to reset clut to default. Next update will fix.

Read the help info about this update carefully.
Appearance tool still needs a lot of work.

DCS
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: BezierPenTool

Postby gonetriadrr » Sun Jan 29, 2012 10:17 am

Update '3r'
Appearance tool palette changes:

Dashed line rendering specification reenabled.

Temporarily removed ability to replace colors in the clut via dragNdrop.
This version presents a dialog allowing user to choose 1 of the 4 existing clut colors deemed the closest match to the dropped RGB color... according to the CIE 1994 delta E algorithm using sRGB colorspace constants.

DCS
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: BezierPenTool

Postby Dan_Kelleher » Mon Jan 30, 2012 11:17 am

Hi David,
I noticed, a while ago, your post of BezierPenTool on the Yahoo Group as well.
I'm sorry I have not been able to give you any feedback, even my not so helpful stuff, which at least might stimulate exchanges.
I nevertheless think what you are doing is terrific!
I think all the time about BezierPenTool and Ian's work on the OpenGl tool.
God willing I will get back on SuperCard track.
Tenaciously always,
-Dan
Daniel.Kelleher@umassmed.edu
SC4.7.3 OSX 10.7.2 Mac Pro
User avatar
Dan_Kelleher
 
Posts: 438
Joined: Sun Jul 06, 2008 2:45 pm
Location: Worcester (wouster as in would) Massachusetts USA

Re: BezierPenTool

Postby Dan_Kelleher » Mon Jan 30, 2012 11:19 am

The projects I'm thinking about would work well on both iPad and the Mac DeskTop.
Daniel.Kelleher@umassmed.edu
SC4.7.3 OSX 10.7.2 Mac Pro
User avatar
Dan_Kelleher
 
Posts: 438
Joined: Sun Jul 06, 2008 2:45 pm
Location: Worcester (wouster as in would) Massachusetts USA

Re: BezierPenTool

Postby gonetriadrr » Tue Jan 31, 2012 7:40 am

Dan_Kelleher wrote:Hi David,
I noticed, a while ago, your post of BezierPenTool on the Yahoo Group as well.
I'm sorry I have not been able to give you any feedback, even my not so helpful stuff, which at least might stimulate exchanges.
I nevertheless think what you are doing is terrific!
I think all the time about BezierPenTool and Ian's work on the OpenGl tool.
God willing I will get back on SuperCard track.
Tenaciously always,
-Dan


Thanks for your support!
The project is still very much a mess.

DCS
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: BezierPenTool

Postby Dan_Kelleher » Tue Jan 31, 2012 9:36 am

Re my messes, I keep taking notes.
The pile has driven my wife to turn our 23 yr old's old bedroom into her own office, leaving me with more space.
Yea!
sort of...
I guess I'll just mosey on up to visit.
Daniel.Kelleher@umassmed.edu
SC4.7.3 OSX 10.7.2 Mac Pro
User avatar
Dan_Kelleher
 
Posts: 438
Joined: Sun Jul 06, 2008 2:45 pm
Location: Worcester (wouster as in would) Massachusetts USA

Previous

Return to The Lab

Who is online

Users browsing this forum: No registered users and 1 guest