本文整理汇总了C#中VixenModules.App.Curves.Curve类的典型用法代码示例。如果您正苦于以下问题:C# Curve类的具体用法?C# Curve怎么用?C# Curve使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Curve类属于VixenModules.App.Curves命名空间,在下文中一共展示了Curve类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: VerticalMeterData
public VerticalMeterData()
{
Inverted = false;
DecayTime = 1500;
AttackTime = 50;
Normalize = true;
Gain = 0;
Range = 10;
RedColorPosition = 95;
GreenColorPosition = 25;
MeterColorStyle = MeterColorTypes.Linear;
LowPass = false;
LowPassFreq = 100;
HighPass = false;
HighPassFreq = 500;
Color[] myColors = { Color.Lime, Color.Yellow, Color.Red };
float[] myPositions = { 0, (float)GreenColorPosition / 100, (float)RedColorPosition / 100 };
ColorBlend linearBlend = new ColorBlend();
linearBlend.Colors = myColors;
linearBlend.Positions = myPositions;
ColorGradient linearGradient = new ColorGradient(linearBlend);
IntensityCurve = new Curve();
IntensityCurve.Points.Clear();
IntensityCurve.Points.Add(new ZedGraph.PointPair(0, 100));
IntensityCurve.Points.Add(new ZedGraph.PointPair(100, 100));
MeterColorGradient = linearGradient;
DepthOfEffect = 0;
}
示例2: VUMeterData
public VUMeterData()
{
DecayTime = 1500;
AttackTime = 50;
Normalize = true;
Gain = 0;
Range = 10;
RedColorPosition = 95;
GreenColorPosition = 25;
MeterColorStyle = MeterColorTypes.Custom;
LowPass = false;
LowPassFreq = 100;
HighPass = false;
HighPassFreq = 500;
IntensityCurve = new Curve();
IntensityCurve.Points.Clear();
IntensityCurve.Points.Add(new ZedGraph.PointPair(0, 0));
IntensityCurve.Points.Add(new ZedGraph.PointPair(100, 100));
ColorGradient linearGradient = new ColorGradient(Color.White);
MeterColorGradient = linearGradient;
DepthOfEffect = 0;
}
示例3: FireworksData
public FireworksData()
{
ColorGradients = new List<ColorGradient> { new ColorGradient(Color.Red), new ColorGradient(Color.Lime), new ColorGradient(Color.Blue) };
Explosions = 10;
RandomVelocity = false;
Velocity = 5;
MinVelocity = 1;
MaxVelocity = 10;
RandomParticles = true;
Particles = 40;
MinParticles = 10;
MaxParticles = 50;
ColorType = FireworksColorType.Standard;
ParticleFade = 50;
LevelCurve = new Curve(CurveType.Flat100);
ExplosionSensitivity = 5;
Sensitivity = -70;
LowPass = false;
LowPassFreq = 1000;
HighPass = false;
HighPassFreq = 500;
Normalize = true;
DecayTime = 1500;
AttackTime = 52;
EnableAudio = false;
Gain = 0;
}
示例4: RenderNode
// renders the given node to the internal ElementData dictionary. If the given node is
// not a element, will recursively descend until we render its elements.
public static EffectIntents RenderNode(ElementNode node, Curve levelCurve, ColorGradient colorGradient, TimeSpan duration, bool isDiscrete, bool allowZeroIntensity = false)
{
//Collect all the points first.
double[] allPointsTimeOrdered = _GetAllSignificantDataPoints(levelCurve, colorGradient).ToArray();
var elementData = new EffectIntents();
foreach (ElementNode elementNode in node.GetLeafEnumerator())
{
// this is probably always going to be a single element for the given node, as
// we have iterated down to leaf nodes in RenderNode() above. May as well do
// it this way, though, in case something changes in future.
if (elementNode == null || elementNode.Element == null)
continue;
//ElementColorType colorType = ColorModule.getColorTypeForElementNode(elementNode);
if (isDiscrete && IsElementDiscrete(node))
{
IEnumerable<Color> colors = ColorModule.getValidColorsForElementNode(elementNode, false)
.Intersect(colorGradient.GetColorsInGradient());
foreach (Color color in colors)
{
AddIntentsToElement(elementNode.Element, allPointsTimeOrdered, levelCurve, colorGradient, duration, elementData, allowZeroIntensity, color);
}
}
else
{
AddIntentsToElement(elementNode.Element, allPointsTimeOrdered, levelCurve, colorGradient, duration, elementData, allowZeroIntensity);
}
}
return elementData;
}
示例5: FireData
public FireData()
{
Location = FireDirection.Bottom;
Height = new Curve(new PointPairList(new[] { 0.0, 100.0 }, new[] { 50.0, 50.0 }));
HueShift = 0;
LevelCurve = new Curve(new PointPairList(new[] { 0.0, 100.0 }, new[] { 100.0, 100.0 }));
Orientation = StringOrientation.Vertical;
}
示例6: DimmingCurveHelper
public DimmingCurveHelper()
{
InitializeComponent();
ForeColor = ThemeColorTable.ForeColor;
BackColor = ThemeColorTable.BackgroundColor;
ThemeUpdateControls.UpdateControls(this);
_curve = new Curve();
}
示例7: BarsData
public BarsData()
{
Colors = new List<ColorGradient>{new ColorGradient(Color.Red), new ColorGradient(Color.Lime), new ColorGradient(Color.Blue)};
Direction = BarDirection.Up;
Speed = 1;
Repeat = 1;
LevelCurve = new Curve(new PointPairList(new[] { 0.0, 100.0 }, new[] { 100.0, 100.0 }));
Orientation=StringOrientation.Vertical;
}
示例8: GlediatorData
public GlediatorData()
{
Speed = 2;
FileName = String.Empty;
MovementType = MovementType.Iterations;
Iterations = 1;
Orientation=StringOrientation.Vertical;
LevelCurve = new Curve(new PointPairList(new[] { 0.0, 100.0 }, new[] { 100.0, 100.0 }));
}
示例9: LifeData
public LifeData()
{
Colors = new List<ColorGradient>{new ColorGradient(Color.Red), new ColorGradient(Color.Lime), new ColorGradient(Color.Blue)};
Speed = 5;
CellsToStart = 50;
Type = 1;
Repeat = 1;
LevelCurve = new Curve(CurveType.Flat100);
Orientation=StringOrientation.Vertical;
}
示例10: PlasmaData
public PlasmaData()
{
Colors = new List<ColorGradient>{new ColorGradient(Color.Red), new ColorGradient(Color.Lime), new ColorGradient(Color.Blue)};
Speed = 10;
PlasmaStyle = 1;
LineDensity = 1;
ColorType = PlasmaColorType.Normal;
LevelCurve = new Curve(CurveType.Flat100);
Orientation=StringOrientation.Vertical;
}
示例11: SnowflakesData
public SnowflakesData()
{
OuterColor = Color.White;
CenterColor = Color.Blue;
SnowflakeType = SnowflakeType.Random;
Speed = 5;
FlakeCount = 1;
LevelCurve = new Curve(new PointPairList(new[] { 0.0, 100.0 }, new[] { 100.0, 100.0 }));
Orientation=StringOrientation.Vertical;
}
示例12: ChaseData
public ChaseData()
{
ColorHandling = ChaseColorHandling.StaticColor;
PulseOverlap = 0;
DefaultLevel = 0;
StaticColor = Color.White;
ColorGradient = new ColorGradient();
PulseCurve = new Curve();
ChaseMovement = new Curve();
}
示例13: FireworksData
public FireworksData()
{
Colors = new List<Color> { Color.Red, Color.Lime, Color.Blue };
Particles = 50;
Explosions = 50;
Velocity = 5;
ParticleFade = 50;
Speed = 5;
LevelCurve = new Curve(new PointPairList(new[] { 0.0, 100.0 }, new[] { 100.0, 100.0 }));
}
示例14: SnowStormData
public SnowStormData()
{
Colors = new List<ColorGradient>{new ColorGradient(Color.Red), new ColorGradient(Color.Lime), new ColorGradient(Color.Blue)};
Speed = 50;
Count = 10;
Length = 5;
ReverseDirection = false;
ColorType = SnowStormColorType.Palette;
LevelCurve = new Curve(new PointPairList(new[] { 0.0, 100.0 }, new[] { 100.0, 100.0 }));
Orientation=StringOrientation.Vertical;
}
示例15: SpiralData
public SpiralData()
{
Colors = new List<ColorGradient>{new ColorGradient(Color.Red), new ColorGradient(Color.Lime), new ColorGradient(Color.Blue)};
Direction = SpiralDirection.Forward;
Speed = 1;
Repeat = 1;
Blend = false;
Rotation = 20;
Thickness = 60;
LevelCurve = new Curve(new PointPairList(new[] { 0.0, 100.0 }, new[] { 100.0, 100.0 }));
Orientation=StringOrientation.Vertical;
}