本文整理汇总了C#中VixenModules.App.Curves.Curve类的典型用法代码示例。如果您正苦于以下问题:C# Curve类的具体用法?C# Curve怎么用?C# Curve使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Curve类属于VixenModules.App.Curves命名空间,在下文中一共展示了Curve类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:jaredb7,项目名称:vixen,代码行数:34,代码来源:VerticalMeterData.cs
示例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;
}
开发者ID:jaredb7,项目名称:vixen,代码行数:26,代码来源:VUMeterData.cs
示例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;
}
开发者ID:jaredb7,项目名称:vixen,代码行数:27,代码来源:FireworksData.cs
示例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;
}
开发者ID:jaredb7,项目名称:vixen,代码行数:34,代码来源:PulseRenderer.cs
示例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;
}
开发者ID:stewmc,项目名称:vixen,代码行数:8,代码来源:FireData.cs
示例6: DimmingCurveHelper
public DimmingCurveHelper()
{
InitializeComponent();
ForeColor = ThemeColorTable.ForeColor;
BackColor = ThemeColorTable.BackgroundColor;
ThemeUpdateControls.UpdateControls(this);
_curve = new Curve();
}
开发者ID:naztrain,项目名称:vixen,代码行数:8,代码来源:DimmingCurveHelper.cs
示例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;
}
开发者ID:jaredb7,项目名称:vixen,代码行数:9,代码来源:BarsData.cs
示例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 }));
}
开发者ID:jaredb7,项目名称:vixen,代码行数:9,代码来源:GlediatorData.cs
示例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;
}
开发者ID:jaredb7,项目名称:vixen,代码行数:10,代码来源:LifeData.cs
示例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;
}
开发者ID:jaredb7,项目名称:vixen,代码行数:10,代码来源:PlasmaData.cs
示例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;
}
开发者ID:stewmc,项目名称:vixen,代码行数:10,代码来源:SnowflakesData.cs
示例12: ChaseData
public ChaseData()
{
ColorHandling = ChaseColorHandling.StaticColor;
PulseOverlap = 0;
DefaultLevel = 0;
StaticColor = Color.White;
ColorGradient = new ColorGradient();
PulseCurve = new Curve();
ChaseMovement = new Curve();
}
开发者ID:kjburns31,项目名称:vixen-modules,代码行数:10,代码来源:ChaseData.cs
示例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 }));
}
开发者ID:stewmc,项目名称:vixen,代码行数:10,代码来源:FireworksData.cs
示例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;
}
开发者ID:jaredb7,项目名称:vixen,代码行数:11,代码来源:SnowStormData.cs
示例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;
}
开发者ID:stewmc,项目名称:vixen,代码行数:12,代码来源:SpiralData.cs
示例16: PictureData
public PictureData()
{
EffectType = EffectType.RenderPictureNone;
ScalePercent = 100;
ScaleToGrid = false;
Speed = 1;
FileName = String.Empty;
Orientation=StringOrientation.Vertical;
XOffset = 0;
YOffset = 0;
LevelCurve = new Curve(new PointPairList(new[] { 0.0, 100.0 }, new[] { 100.0, 100.0 }));
}
开发者ID:stewmc,项目名称:vixen,代码行数:12,代码来源:PictureData.cs
示例17: CurtainData
public CurtainData()
{
Gradient = new ColorGradient();
Gradient.Colors.Clear();
Gradient.Colors.Add(new ColorPoint(Color.Red, 0.0));
Gradient.Colors.Add(new ColorPoint(Color.Lime, 1.0));
Direction = CurtainDirection.CurtainOpen;
Speed = 1;
Edge = CurtainEdge.Center;
Swag = 1;
LevelCurve = new Curve(CurveType.Flat100);
Orientation=StringOrientation.Vertical;
}
开发者ID:jaredb7,项目名称:vixen,代码行数:13,代码来源:CurtainData.cs
示例18: ChaseData
public ChaseData()
{
ColorHandling = ChaseColorHandling.StaticColor;
PulseOverlap = 0;
DefaultLevel = 0;
StaticColor = Color.White;
ColorGradient = new ColorGradient(Color.White);
PulseCurve = new Curve();
ChaseMovement = new Curve();
DepthOfEffect = 0;
ExtendPulseToStart = false;
ExtendPulseToEnd = false;
}
开发者ID:stewmc,项目名称:vixen,代码行数:13,代码来源:ChaseData.cs
示例19: WipeData
public WipeData() {
Curve = new Curve();
Curve.Points.Clear();
Curve.Points.Add(0, 0);
Curve.Points.Add(50, 100);
Curve.Points.Add(100, 0);
Direction = WipeDirection.Right;
ColorGradient = new ColorGradient(Color.White);
PulseTime = 1000;
WipeByCount = false;
PassCount = 1;
PulsePercent = 33;
}
开发者ID:stewmc,项目名称:vixen,代码行数:14,代码来源:WipeData.cs
示例20: TreeData
public TreeData()
{
Colors = new List<ColorGradient>{new ColorGradient(Color.Red), new ColorGradient(Color.Lime), new ColorGradient(Color.Blue)};
BackgroundColor = new ColorGradient(Color.Red);
ColorType = TreeColorType.Static;
BranchDirection = TreeBranchDirection.Up;
Speed = 10;
ToggleBlend = true;
Branches = 10;
LevelCurve = new Curve(new PointPairList(new[] { 0.0, 100.0 }, new[] { 100.0, 100.0 }));
BlendCurve = new Curve(new PointPairList(new[] { 0.0, 100.0 }, new[] { 70.0, 70.0 }));
BackgroundLevelCurve = new Curve(new PointPairList(new[] { 0.0, 100.0 }, new[] { 70.0, 70.0 }));
Orientation=StringOrientation.Vertical;
}
开发者ID:jaredb7,项目名称:vixen,代码行数:14,代码来源:TreeData.cs
注:本文中的VixenModules.App.Curves.Curve类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论