2using System.Collections.Generic;
3using System.Threading.Tasks;
37 return new string[] {
"Color",
"Alpha" };
61 return this.Evaluate(
Argument1.AssociatedObjectValue,
Argument2.AssociatedObjectValue);
87 A = (byte)(
Alpha + 0.5);
Class managing a script expression.
static double ToDouble(object Object)
Converts an object to a double value.
Sets the Alpha channel of a color.
override string FunctionName
Name of the function
override Task< IElement > EvaluateScalarAsync(IElement Argument1, IElement Argument2, Variables Variables)
Evaluates the function on two scalar arguments.
Alpha(ScriptNode Color, ScriptNode Alpha, int Start, int Length, Expression Expression)
Sets the Alpha channel of a color.
override IElement EvaluateScalar(IElement Argument1, IElement Argument2, Variables Variables)
Evaluates the function on a scalar argument.
override string[] DefaultArgumentNames
Default Argument names
override IElement EvaluateScalar(string Argument1, string Argument2, Variables Variables)
Evaluates the function on two scalar arguments.
Returns a color value from a string.
static SKColor ToColor(object Object)
Converts an object to a color.
Base class for funcions of two scalar variables.
ScriptNode Argument2
Function argument 2.
ScriptNode Argument1
Function argument 1.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
int Start
Start position in script expression.
Basic interface for all types of elements.