diff --git a/GraficRender/GraficRender.csproj b/GraficRender/GraficRender.csproj index 6db3579..cbcf817 100644 --- a/GraficRender/GraficRender.csproj +++ b/GraficRender/GraficRender.csproj @@ -1,6 +1,6 @@ - Exe + WinExe net6.0 Major false diff --git a/GraficRender/MainGame.cs b/GraficRender/MainGame.cs index 034b2c3..e466b54 100644 --- a/GraficRender/MainGame.cs +++ b/GraficRender/MainGame.cs @@ -73,9 +73,19 @@ protected override void Initialize() Directory.CreateDirectory("Functions"); using StreamWriter stream = new StreamWriter(File.Create($"Functions/parabola.cs")); stream.Write(""" + [DynamicParameter(1, 10)] + public static float a; + + [Color(0, 100, 100)] + [Update] + public static float SinDerv(float x) + { + return a * MathF.Sin(x); + } + public static float Parabola(float x) { - return x * x; + return x * x; } """); }