This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$true)] | |
[string] $AzureDevOpsPAT, | |
[Parameter(Mandatory=$true)] | |
[string] $OrganizationName, | |
[Parameter(Mandatory=$true)] | |
[string] $teamProjectName, | |
[Parameter(Mandatory=$true)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public int[] getPieChartColors(int numPieSlices, int baseColor, | |
boolean adjacentColors) { | |
// Inspiration http://stackoverflow.com/a/19389478 | |
int[] colors = new int[numPieSlices]; | |
colors[0] = baseColor; | |
float hsv[] = new float[3]; | |
Color.RGBToHSV(Color.red(baseColor), Color.green(baseColor), Color.blue(baseColor), | |
hsv); | |
double step = (240.0 / (double) numPieSlices); |