• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drawing noise in Cocoa (preferably fast)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing noise in Cocoa (preferably fast)


  • Subject: Re: Drawing noise in Cocoa (preferably fast)
  • From: Quincey Morris <email@hidden>
  • Date: Tue, 14 Jun 2011 15:07:07 -0700

On Jun 14, 2011, at 14:56, Stephen Blinkhorn wrote:

> I'm looking to fill a large custom view with noise. The solution I have arrived at so far is taking much too long to draw for it to be useable. Does anyone know any better ways of achieving this in Cocoa? The basic idea is to add an amount of noise to a base color pixel by pixel, for example:

Have you looked into using Core Image, e.g. the CIRandomGenerator filter composited onto an image filled with the base color?

For something trivial (in Core Image terms) like this, there's a fairly steep learning curve, but the point of Core Image *is* performance.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Drawing noise in Cocoa (preferably fast)
      • From: Stephen Blinkhorn <email@hidden>
    • Re: Drawing noise in Cocoa (preferably fast)
      • From: Stephen Blinkhorn <email@hidden>
References: 
 >Drawing noise in Cocoa (preferably fast) (From: Stephen Blinkhorn <email@hidden>)

  • Prev by Date: Drawing noise in Cocoa (preferably fast)
  • Next by Date: Re: Drawing noise in Cocoa (preferably fast)
  • Previous by thread: Drawing noise in Cocoa (preferably fast)
  • Next by thread: Re: Drawing noise in Cocoa (preferably fast)
  • Index(es):
    • Date
    • Thread