C# Class Pinta.ImageManipulation.Effects.CloudsEffect

Inheritance: BaseEffect
Mostra file Open project: PintaProject/Pinta.ImageManipulation

Public Methods

Method Description
CloudsEffect ( int scale = 250, int power = 50, int seed, ColorBgra fromColor = newColorBgra(), ColorBgra toColor = newColorBgra(), BlendMode blendMode = BlendMode.Normal ) : System

Creates a new effect that will render clouds onto an image.

Protected Methods

Method Description
RenderLine ( ISurface src, ISurface dst, Rectangle roi ) : void

Private Methods

Method Description
CloudsEffect ( ) : System
Fade ( double t ) : double
Grad ( int hash, double x, double y ) : double
Noise ( byte ix, byte iy, double x, double y, byte seed ) : double
RenderClouds ( ISurface surface, Rectangle rect, int scale, byte seed, double power, ColorBgra colorFrom, ColorBgra colorTo ) : void

Method Details

CloudsEffect() public method

Creates a new effect that will render clouds onto an image.
public CloudsEffect ( int scale = 250, int power = 50, int seed, ColorBgra fromColor = newColorBgra(), ColorBgra toColor = newColorBgra(), BlendMode blendMode = BlendMode.Normal ) : System
scale int The relative size of the clouds. Valid range is 2 - 1000.
power int The power of the clouds. Valid range is 0 - 100.
seed int Seed value for random generator.
fromColor ColorBgra Initial cloud color.
toColor ColorBgra Final cloud color.
blendMode BlendMode Blend mode to use when applying clouds.
return System

RenderLine() protected method

protected RenderLine ( ISurface src, ISurface dst, Rectangle roi ) : void
src ISurface
dst ISurface
roi Rectangle
return void