Show / Hide Table of Contents

Struct OldMovieConfiguration

Creates the effect of an old movie reel / projector Includes: Scratch Lines in frames, Noise, Random Vertical Shifting, Dimming, Reel Rolling, Over Exposure Flicker

Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public struct OldMovieConfiguration

Properties

Dim

Scalar for random dimming amount

Declaration
public float Dim { get; set; }
Property Value
Type Description
System.Single

Intensity

Used for twice:

  1. An interpolation between unmodified texture coordinates and modified. 1.0 resulting in max pixellation
  2. Interpolation between pre- effect and post-effect pixels (0 to 1)
Declaration
public float Intensity { get; set; }
Property Value
Type Description
System.Single

Noise

Scalar for Noise

Declaration
public float Noise { get; set; }
Property Value
Type Description
System.Single

OverExposureFlickerTimeMax

Maximum time for over exposure flicker duration. Duration chosen randomly in range

Declaration
public float OverExposureFlickerTimeMax { get; set; }
Property Value
Type Description
System.Single

OverExposureFlickerTimeMin

Minimum time for over exposure flicker duration. Duration chosen randomly in range

Declaration
public float OverExposureFlickerTimeMin { get; set; }
Property Value
Type Description
System.Single

OverExposureIntensityMax

Maximum Over Exposure Intensity. Intensity chosen randomly in range

Declaration
public float OverExposureIntensityMax { get; set; }
Property Value
Type Description
System.Single

OverExposureIntensityMin

Minimum Over Exposure Intensity. Intensity chosen randomly in range

Declaration
public float OverExposureIntensityMin { get; set; }
Property Value
Type Description
System.Single

OverExposureOscillationsMax

Maximum number of over exposure oscillations per flicker. Number of chosen randomly in range

Declaration
public float OverExposureOscillationsMax { get; set; }
Property Value
Type Description
System.Single

OverExposureOscillationsMin

Minimum number of over exposure oscillations per flicker. Number of chosen randomly in range

Declaration
public float OverExposureOscillationsMin { get; set; }
Property Value
Type Description
System.Single

OverExposureProbabilityStart

Chance over exposure flicker starts each frame (lower less likely)

Declaration
public float OverExposureProbabilityStart { get; set; }
Property Value
Type Description
System.Single

ProbabilityRollEnds

Chance a reel roll stops each frame when rolling (lower less likley)

Declaration
public float ProbabilityRollEnds { get; set; }
Property Value
Type Description
System.Single

ProbabilityRollStarts

Chance a reel roll starts each frame (lower less likley)

Declaration
public float ProbabilityRollStarts { get; set; }
Property Value
Type Description
System.Single

RndShiftCutOff

Random cut off factor for shifting screen vertically at random intervals A higher value makes random shifts less likely

Declaration
public float RndShiftCutOff { get; set; }
Property Value
Type Description
System.Single

RndShiftScalar

The intensity of random shift movement

Declaration
public float RndShiftScalar { get; set; }
Property Value
Type Description
System.Single

RollAccelerationMax

Max reel roll texture coordinte acceleration. Acceleration is chosen randomly in interval

Declaration
public float RollAccelerationMax { get; set; }
Property Value
Type Description
System.Single

RollAccelerationMin

Min reel roll texture coordinte acceleration. Acceleration is chosen randomly in interval

Declaration
public float RollAccelerationMin { get; set; }
Property Value
Type Description
System.Single

RollOverallScale

Linear scaler to modify overal roll movement

Declaration
public float RollOverallScale { get; set; }
Property Value
Type Description
System.Single

RollShakeFactor

Scales the amount of random shaking in the texture coordinate shifting of the reel rolls

Declaration
public float RollShakeFactor { get; set; }
Property Value
Type Description
System.Single

RollSpeedMax

Max reel roll texture coordinte speed. Speed is chosen randomly in interval

Declaration
public float RollSpeedMax { get; set; }
Property Value
Type Description
System.Single

RollSpeedMin

Min reel roll texture coordinte speed. Speed is chosen randomly in interval

Declaration
public float RollSpeedMin { get; set; }
Property Value
Type Description
System.Single

Scratch

Scalar for amount of scratch lines

Declaration
public float Scratch { get; set; }
Property Value
Type Description
System.Single

Methods

GenerateDefault()

Generate a Default Configurations for the Old Movie Effect

Declaration
public static OldMovieConfiguration GenerateDefault()
Returns
Type Description
OldMovieConfiguration

PreSet(Single)

Returns a pre-set effect configuration scaled between 0 and 1

Declaration
public static OldMovieConfiguration PreSet(float amount)
Parameters
Type Name Description
System.Single amount

0 to 1 intensity of effect

Returns
Type Description
OldMovieConfiguration
In This Article
Back to top yak2D - Alex Paterson