Jump to content

Arrow Resize Problem?


Recommended Posts

Hi all,

I have written a simple plugin which draws an Arrow. Arrow is made up of two polygons. Left and Right. Each side has different color. I want to resize any side such that it maintain the symmetry and shape of the arrow. I have achieved this only if the Arrow head is an equilateral triangle. But if its not equilateral then Arrow gets de-shape. I have attached screenshot for the reference. Also if i resize 1 side and then resize other side arrow again gets de-shape. What will be a generic algorithm to achieve this. I want that Arrow maintain it symmetry in any way i resize it.



Edited by AppDev
Link to comment
Share on other sites

This actually gives a unique effect, makes for good house outlines.

Anyways, instead of rendering two sides individually, I would just render the arrow as one color, then use an algorithm to color one-half of the arrow.

Would be kind of a redundant plugin though, as you can just make an arrow using PDN's line tool then re-color one half to your liking with relative ease.

In my opinion, you should keep the plugin as-is, adding some unique features for a unique plugin!

Edited by Weylin
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...