2using System.Collections.Generic;
38 return new string[] {
"R",
"G",
"B",
"A" };
86 return new ObjectValue(
new SKColor((
byte)R, (
byte)G, (
byte)B, (
byte)A));
Class managing a script expression.
static double ToDouble(object Object)
Converts an object to a double value.
Returns a color value using RGB coordinates, and an alpha component.
override string FunctionName
Name of the function
override IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the function.
override string[] DefaultArgumentNames
Default Argument names
RGBA(ScriptNode R, ScriptNode G, ScriptNode B, ScriptNode A, int Start, int Length, Expression Expression)
Returns a color value using RGB coordinates, and an alpha component.
Base class for multivariate funcions.
ScriptNode[] Arguments
Function arguments.
static readonly ArgumentType[] argumentTypes4Scalar
Four scalar parameters.
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.
Basic interface for all types of elements.