@Nonnull
		private static Color createColor(double hue) {
			Color color = Color.hsb(hue, 1.0, 1.0);

			// Ensure the color is actually bright enough.
			// In cases like pure blue, we have to lower the saturation incrementally to allow the brightness
			// boosting math to have any effect. The brightness constants should approximate perceived brightness.
			int i = 0;
			while (i < 30) {
				double red = color.getRed();
				double green = color.getGreen();
				double blue = color.getBlue();
				double brightness = 0.2126 * red + 0.7152 * green + 0.0722 * blue;
				if (brightness > 0.4)
					break;
				color = color.deriveColor(0, 0.97, 1.2, 1);
				i++;
			}

			return color;
		}
Highlighter which shows read and write access of a {@link LabelData}.
recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/assembler/ControlFlowLines.java