mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
931b43aa66
@ -17,12 +17,6 @@ steps:
|
||||
- checkout: self
|
||||
path: s/Artemis
|
||||
|
||||
- task: UseDotNet@2
|
||||
displayName: 'Install .Net 5 SDK'
|
||||
inputs:
|
||||
packageType: 'sdk'
|
||||
version: '5.0.100'
|
||||
|
||||
- task: DownloadPipelineArtifact@2
|
||||
inputs:
|
||||
buildType: 'specific'
|
||||
@ -40,12 +34,6 @@ steps:
|
||||
feedsToUse: 'config'
|
||||
nugetConfigPath: '$(Pipeline.Workspace)/s/Artemis/src/NuGet.Config'
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: 'dotnet build Artemis'
|
||||
inputs:
|
||||
command: 'build'
|
||||
projects: '$(artemisSolution)'
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: "DockFX build"
|
||||
inputs:
|
||||
|
||||
@ -17,12 +17,6 @@ steps:
|
||||
- checkout: self
|
||||
path: s/Artemis
|
||||
|
||||
- task: UseDotNet@2
|
||||
displayName: 'Install .Net 5 SDK'
|
||||
inputs:
|
||||
packageType: 'sdk'
|
||||
version: '5.0.100'
|
||||
|
||||
- task: DownloadPipelineArtifact@2
|
||||
inputs:
|
||||
buildType: 'specific'
|
||||
|
||||
@ -119,11 +119,13 @@ namespace Artemis.Core
|
||||
/// <returns></returns>
|
||||
public static ColorGradient GetUnicornBarf()
|
||||
{
|
||||
const int amount = 8;
|
||||
ColorGradient gradient = new ColorGradient();
|
||||
for (int i = 0; i < 9; i++)
|
||||
|
||||
for (int i = 0; i <= amount; i++)
|
||||
{
|
||||
SKColor color = i != 8 ? SKColor.FromHsv(i * 32, 100, 100) : SKColor.FromHsv(0, 100, 100);
|
||||
gradient.Stops.Add(new ColorGradientStop(color, 0.125f * i));
|
||||
float percent = i / (float)amount;
|
||||
gradient.Stops.Add(new ColorGradientStop(SKColor.FromHsv(360f * percent, 100, 100), percent));
|
||||
}
|
||||
|
||||
return gradient;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user