mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 13:28:33 +00:00
Storage - Downgrade EF for now to latest 8.x
Core - Include backwards compatible color quantizer methods
This commit is contained in:
parent
37f973b093
commit
d725234d56
@ -12,6 +12,20 @@ namespace Artemis.Core.ColorScience;
|
||||
/// </summary>
|
||||
public static class ColorQuantizer
|
||||
{
|
||||
/// <inheritdoc cref="Quantize(Span{SKColor}, int)"/>
|
||||
[Obsolete("Use Quantize(Span<SKColor> colors, int amount) in-parameter instead")]
|
||||
public static SKColor[] Quantize(in Span<SKColor> colors, int amount)
|
||||
{
|
||||
return Quantize(colors, amount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="QuantizeSplit(Span{SKColor}, int)"/>
|
||||
[Obsolete("Use QuantizeSplit(Span<SKColor> colors, int splits) without the in-parameter instead")]
|
||||
public static SKColor[] QuantizeSplit(in Span<SKColor> colors, int splits)
|
||||
{
|
||||
return QuantizeSplit(colors, splits);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Quantizes a span of colors into the desired amount of representative colors.
|
||||
/// </summary>
|
||||
@ -26,7 +40,7 @@ public static class ColorQuantizer
|
||||
int splits = BitOperations.Log2((uint)amount);
|
||||
return QuantizeSplit(colors, splits);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Quantizes a span of colors, splitting the average <paramref name="splits"/> number of times.
|
||||
/// </summary>
|
||||
|
||||
@ -32,9 +32,9 @@
|
||||
<PackageVersion Include="Markdown.Avalonia.Tight" Version="11.0.2" />
|
||||
<PackageVersion Include="Material.Icons.Avalonia" Version="2.1.10" />
|
||||
<PackageVersion Include="McMaster.NETCore.Plugins" Version="1.4.0" />
|
||||
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="8.0.2" />
|
||||
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.0" />
|
||||
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.0">
|
||||
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="8.0.11" />
|
||||
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.11" />
|
||||
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.11">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageVersion>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user