mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-01-01 02:03:32 +00:00
explicitly identify out variables, removed debugging temp variable
This commit is contained in:
parent
b0928faccc
commit
dd1d9fe6fe
@ -15,13 +15,11 @@ namespace Artemis.Core.DefaultTypes
|
|||||||
|
|
||||||
public override object Apply(object currentValue, object parameterValue)
|
public override object Apply(object currentValue, object parameterValue)
|
||||||
{
|
{
|
||||||
((SKColor) currentValue).ToHsl(out var h, out var s, out var l);
|
((SKColor) currentValue).ToHsl(out float h, out float s, out float l);
|
||||||
|
|
||||||
h += (float)parameterValue;
|
h += (float)parameterValue;
|
||||||
|
|
||||||
var a = SKColor.FromHsl(h % 360, s, l);
|
return SKColor.FromHsl(h % 360, s, l);
|
||||||
|
|
||||||
return a;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user