Packagegraphics.display
Classpublic class RadialPerlinBitmapData
InheritanceRadialPerlinBitmapData Inheritance flash.display.BitmapData

A circular perlin noise effect.

This class maps a linear perlin noise to a radial perlin noise and exposes the resulting bitmapdata for use.



Public Methods
 MethodDefined By
  
RadialPerlinBitmapData(radius:Number, numOctaves:uint, randomSeed:int, fractalNoise:Boolean, channelOptions:uint = 7, grayScale:Boolean = false, fadeEdge:Boolean = false)
The constructor creates a Radialperlin effect.
RadialPerlinBitmapData
  
dispose():void
[override] Frees memory that is used to store the BitmapData object.
RadialPerlinBitmapData
  
render(distance:Number, rotation:Number):void
Render the radial perlin effect with the specified distance and rotation value.
RadialPerlinBitmapData
Constructor Detail
RadialPerlinBitmapData()Constructor
public function RadialPerlinBitmapData(radius:Number, numOctaves:uint, randomSeed:int, fractalNoise:Boolean, channelOptions:uint = 7, grayScale:Boolean = false, fadeEdge:Boolean = false)

The constructor creates a Radialperlin effect.

Parameters
radius:Number — The radius of the perlin noise image
 
numOctaves:uint — Number of octaves or individual noise functions to combine to create this noise. Larger numbers of octaves create images with greater detail. Larger numbers of octaves also require more processing time.
 
randomSeed:int — The random seed number to use. If you keep all other parameters the same, you can generate different pseudo-random results by varying the random seed value. The Perlin noise function is a mapping function, not a true random-number generation function, so it creates the same results each time from the same random seed.
 
fractalNoise:Boolean — A Boolean value. If the value is true, the method generates fractal noise; otherwise, it generates turbulence. An image with turbulence has visible discontinuities in the gradient that can make it better approximate sharper visual effects like flames and ocean waves.
 
channelOptions:uint (default = 7) — A number that can be a combination of any of the four color channel values (BitmapDataChannel.RED, BitmapDataChannel.BLUE, BitmapDataChannel.GREEN, and BitmapDataChannel.ALPHA). You can use the logical OR operator (|) to combine channel values.
 
grayScale:Boolean (default = false) — A Boolean value. If the value is true, a grayscale image is created by setting each of the red, green, and blue color channels to identical values. The alpha channel value is not affected if this value is set to true.
 
fadeEdge:Boolean (default = false) — Indicates whether to fade the edge of the image to transparent (true) or keep a sharpe edge on the image (false).
Method Detail
dispose()method
override public function dispose():void

Frees memory that is used to store the BitmapData object.

render()method 
public function render(distance:Number, rotation:Number):void

Render the radial perlin effect with the specified distance and rotation value.

Parameters

distance:Number
 
rotation:Number