98 return new string[] {
"N",
"BandSize",
"Seed" };
121 SKColor[] Result =
new SKColor[N];
127 Generator =
new Random(Seed.Value);
133 H = Generator.NextDouble() * 360;
139 S = V = Math.Cos((2.0 * Math.PI * i) / BandSize + Math.PI / 2) * 0.5 + 0.5;
147 private static readonly Random gen =
new Random();
Script runtime exception.
Class managing a script expression.
static double ToDouble(object Object)
Converts an object to a double value.
Calculates a palette of random color from a single random hue, oscillating the value,...
override string[] DefaultArgumentNames
Default Argument names
override string FunctionName
TODO
RandomSingleHue(ScriptNode N, ScriptNode BandSize, int Start, int Length, Expression Expression)
TODO
static SKColor[] CreatePalette(int N, int BandSize, ScriptNode Node)
TODO
override IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the function.
RandomSingleHue(ScriptNode N, int Start, int Length, Expression Expression)
TODO
RandomSingleHue(ScriptNode N, ScriptNode BandSize, ScriptNode Seed, int Start, int Length, Expression Expression)
TODO
static SKColor[] CreatePalette(int N, int BandSize, int? Seed, ScriptNode Node)
TODO
static SKColor ToColorHSV(double H, double S, double V)
Creates a Color from its HSV representation.
Base class for multivariate funcions.
ScriptNode[] Arguments
Function arguments.
static readonly ArgumentType[] argumentTypes2Scalar
Two scalar parameters.
static readonly ArgumentType[] argumentTypes3Scalar
Three scalar parameters.
static readonly ArgumentType[] argumentTypes1Scalar
One scalar parameter.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
Expression Expression
Expression of which the node is a part.
int Start
Start position in script expression.
TextWriter ConsoleOut
Console out interface. Can be used by functions and script to output data to the console.
Basic interface for all types of elements.