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:
commit
931b43aa66
@ -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:
|
||||||
|
|||||||
@ -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'
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user