[Solved] HSV triangle in C# [closed]
using System.Drawing; using System.Drawing.Imaging; void Main() { double hue = 3.3; double sat = 0.4; double val = 0.9; var wheel = new ColorPicker(400); var img = wheel.DrawImage(hue, sat, val); using (var g = Graphics.FromImage(img)) { var pen = val < 0.5 ? Pens.White : Pens.Black; var wheelPosition = wheel.GetWheelPosition(hue); g.DrawEllipse(pen, (float)wheelPosition.X – 5, (float)wheelPosition.Y … Read more