public ColorWheel() { pixelcolor = Color.Red; hslColor.SetRGB(pixelcolor.R, pixelcolor.G, pixelcolor.B); for (int y = 0; y < 220; y++) { //pixelcolor = Color.Red; //hslColor.SetRGB(pixelcolor.R, pixelcolor.G, pixelcolor.B); hslColor.Hue = 0; for (int x = 0; x < 240; x++) { systemColor = hslColor; pixelcolor.R = systemColor.R; pixelcolor.G = systemColor.G; pixelcolor.B = systemColor.B; image.SetPixel((uint)x, (uint)y, pixelcolor); hslColor.Hue += 1; } hslColor.Saturation -= (y * 0.01); } Texture texture = new Texture(image); sprite.Texture = texture; }