Skip to content

Commit

Permalink
end
Browse files Browse the repository at this point in the history
  • Loading branch information
IRacle1 committed Mar 18, 2024
1 parent 814573d commit e952214
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GraficRender/GraficRender.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<RollForward>Major</RollForward>
<PublishReadyToRun>false</PublishReadyToRun>
Expand Down
12 changes: 11 additions & 1 deletion GraficRender/MainGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
""");
}
Expand Down

0 comments on commit e952214

Please sign in to comment.