1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-31 17:53:32 +00:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
SpoinkyNL 2020-11-20 19:36:00 +01:00
commit 931b43aa66
3 changed files with 5 additions and 21 deletions

View File

@ -17,12 +17,6 @@ steps:
- checkout: self - checkout: self
path: s/Artemis path: s/Artemis
- task: UseDotNet@2
displayName: 'Install .Net 5 SDK'
inputs:
packageType: 'sdk'
version: '5.0.100'
- task: DownloadPipelineArtifact@2 - task: DownloadPipelineArtifact@2
inputs: inputs:
buildType: 'specific' buildType: 'specific'
@ -40,12 +34,6 @@ steps:
feedsToUse: 'config' feedsToUse: 'config'
nugetConfigPath: '$(Pipeline.Workspace)/s/Artemis/src/NuGet.Config' nugetConfigPath: '$(Pipeline.Workspace)/s/Artemis/src/NuGet.Config'
- task: DotNetCoreCLI@2
displayName: 'dotnet build Artemis'
inputs:
command: 'build'
projects: '$(artemisSolution)'
- task: PowerShell@2 - task: PowerShell@2
displayName: "DockFX build" displayName: "DockFX build"
inputs: inputs:

View File

@ -17,12 +17,6 @@ steps:
- checkout: self - checkout: self
path: s/Artemis path: s/Artemis
- task: UseDotNet@2
displayName: 'Install .Net 5 SDK'
inputs:
packageType: 'sdk'
version: '5.0.100'
- task: DownloadPipelineArtifact@2 - task: DownloadPipelineArtifact@2
inputs: inputs:
buildType: 'specific' buildType: 'specific'

View File

@ -119,11 +119,13 @@ namespace Artemis.Core
/// <returns></returns> /// <returns></returns>
public static ColorGradient GetUnicornBarf() public static ColorGradient GetUnicornBarf()
{ {
const int amount = 8;
ColorGradient gradient = new ColorGradient(); 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); float percent = i / (float)amount;
gradient.Stops.Add(new ColorGradientStop(color, 0.125f * i)); gradient.Stops.Add(new ColorGradientStop(SKColor.FromHsv(360f * percent, 100, 100), percent));
} }
return gradient; return gradient;