Re: Drawing a 5 Sided Star Shape

2017-06-11 Thread William Scherrer

There is a good one in the Quartz 2D Programming Guide in the Patterns section

- Will

> On Jun 2, 2017, at 6:56 AM, Dave  wrote:
> 
> Hi,
> 
> I want to draw a 5 sided Star Shape using UIBezierPath. I’ve search for a 
> general purpose algorithm, but I can’t find anything that I can get to work 
> with Cocoa/Objective-C. 
> 
> This code is to go into a UIView subclass in the drawRect: method. 
> 
> If anyone has some code that will draw a decent looking star I’d be really 
> grateful.
> 
> Thanks a lot 
> All the Best
> Dave
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/wfscherrer%40icloud.com
> 
> This email sent to wfscher...@icloud.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Drawing a 5 Sided Star Shape

2017-06-02 Thread Jonathan Mitchell

> On 2 Jun 2017, at 12:56, Dave  wrote:
> 
> Hi,
> 
> I want to draw a 5 sided Star Shape using UIBezierPath. I’ve search for a 
> general purpose algorithm, but I can’t find anything that I can get to work 
> with Cocoa/Objective-C. 
> 
You could take a peek at https://www.paintcodeapp.com 


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Drawing a 5 Sided Star Shape

2017-06-02 Thread Dave
Hi,

I want to draw a 5 sided Star Shape using UIBezierPath. I’ve search for a 
general purpose algorithm, but I can’t find anything that I can get to work 
with Cocoa/Objective-C. 

This code is to go into a UIView subclass in the drawRect: method. 

If anyone has some code that will draw a decent looking star I’d be really 
grateful.

Thanks a lot 
All the Best
Dave

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com