We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Creating a marble texture // C++ translation
Page Index Toggle Pages: 1
Creating a marble texture? // C++ translation (Read 487 times)
Creating a marble texture? // C++ translation
Jun 21st, 2009, 4:26pm
 
Dear community,

I'm attempting to create a marble-like texture in Processing and the only promising resource I've come across is this article about "Fast Marble Texture Algorithm"  (I can't post the link in this post but it shows up readily in Google)

I lack the C++ knowledge to transcribe it to work in Processing.  Any explanations of what the code is doing as well as any other methods to achieve a similar effect would be greatly appreciated.

Much thanks.

Pudy
Re: Creating a marble texture? // C++ translation
Reply #1 - Jun 21st, 2009, 5:53pm
 
I would say, using Perlin Noise would be a good start :
http://processing.org/reference/noise_.html
http://processing.org/learning/basics/noise2d.html

from there one, you can change colors, use filters, effekts, tint it. etc...

the easiest way though would be to just use a graphic... but sounds like thats not what you want.

Page Index Toggle Pages: 1