Fix color

This commit is contained in:
CreepyCrafter24 2020-03-16 13:48:04 +01:00
parent 94cbfd00fe
commit aeec724ab0
4 changed files with 2 additions and 19 deletions

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>

View File

@ -10,7 +10,7 @@
<PostBuildEvent>if exist "$(SolutionDir)Data\pkgtool.exe" ($(SolutionDir)Data\pkgtool.exe build --noLogo --binDir .) else if exist "%appdata%\UpTool2\Apps\0e35d154-d0d3-45e0-b080-62f521263a44\app\pkgtool.exe" ("%appdata%\UpTool2\Apps\0e35d154-d0d3-45e0-b080-62f521263a44\app\pkgtool.exe" build --noLogo --binDir .) else echo Cound not find Package build tools, skipping</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CC-Functions.Misc" Version="1.0.6" />
<PackageReference Include="CC-Functions.Misc" Version="1.0.7.1" />
<PackageReference Include="EPPlus" Version="5.0.4" />
<PackageReference Include="NCalc2" Version="2.1.0" />
</ItemGroup>

View File

@ -35,7 +35,7 @@ namespace GradeCalc
private static int Round(double val) => (int) Math.Round(val);
private static Color GetColor(double x, double max) =>
Color.FromArgb(Round(255 * (1 - (x / max))), Round(255 * (x / max)), 0);
Color.FromArgb(Round(255 * (x / max)), Round(255 * (1 - (x / max))), 0);
private void calcButton_Click(object sender, EventArgs e)
{

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Antlr4" version="4.6.6" targetFramework="net461" developmentDependency="true" />
<package id="Antlr4.CodeGenerator" version="4.6.6" targetFramework="net461" developmentDependency="true" />
<package id="Antlr4.Runtime" version="4.6.6" targetFramework="net461" />
<package id="CC-Functions.Misc" version="1.0.6" targetFramework="net461" />
<package id="EPPlus" version="5.0.4" targetFramework="net461" />
<package id="Microsoft.CSharp" version="4.7.0" targetFramework="net461" />
<package id="NCalc2" version="2.1.0" targetFramework="net48" />
<package id="System.Dynamic.Runtime" version="4.3.0" targetFramework="net48" />
</packages>