1using System.Threading.Tasks;
54 int Width = Pixels.
Width;
55 int Height = Pixels.
Height;
57 byte[] Bin = (
byte[])Raw.
Binary.Clone();
58 int i, j, c = Bin.Length / 4;
59 double[] R =
new double[c];
60 double[] G =
new double[c];
61 double[] B =
new double[c];
62 double[] A =
new double[c];
64 for (i = j = 0; i < c; i++)
72 (
double[] BoundaryR,
double[] BoundaryG,
double[] BoundaryB,
double[] BoundaryA) =
75 FractalGraph.
Smooth(R, G, B, A, BoundaryR, BoundaryG, BoundaryB, BoundaryA, Width, Height,
this,
Variables);
Script runtime exception.
Class managing a script expression.
Defines a clickable fractal graph in the complex plane.
static PixelInformation ToPixels(double[] ColorIndex, int Width, int Height, SKColor[] Palette)
TODO
static double[] FindBoundaries(double[] ColorIndex, int Width, int Height)
TODO
static void Smooth(double[] ColorIndex, double[] Boundary, int Width, int Height, int N, SKColor[] Palette, ScriptNode Node, Variables Variables)
TODO
Creates a smooth image from an image source.
override Task< IElement > EvaluateScalarAsync(IElement Argument, Variables Variables)
Evaluates the function on a scalar argument.
override string FunctionName
Name of the function
SmoothImage(ScriptNode Argument, int Start, int Length, Expression Expression)
Creates a smooth image from an image source.
override string[] DefaultArgumentNames
Default Argument names
override IElement EvaluateScalar(IElement Argument, Variables Variables)
Evaluates the function on a scalar argument.
Handles bitmap-based graphs.
PixelInformation CreatePixels()
Creates a bitmap of the graph.
Base class for funcions of one scalar variable.
ScriptNode Argument
Function argument.
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.