Esempio n. 1
0
        public void SetHue(int Hue)
        {
            double h, s, v;

            ColorToHSV(this.ULAplusRGB, out h, out s, out v);
            if (h == this.Hue && Hue < this.Hue)
            {
                double h1   = h;
                var    ulac = new ULAplusColour(0, new Classes.CLUT());
                var    rgb  = ColorFromHSV(h1, s, v);
                while (rgb == this.ULAplusRGB)
                {
                    h1--;
                    ulac.OriginalRGB = rgb;
                }
            }
            else if (h == this.Hue && Hue < this.Hue)
            {
                double h1   = h;
                var    ulac = new ULAplusColour(0, new CLUT());
                var    rgb  = ColorFromHSV(h1, s, v);
                while (rgb == this.ULAplusRGB)
                {
                    h1++;
                    ulac.OriginalRGB = rgb;
                }
            }
        }
Esempio n. 2
0
 public CLUT()
 {
     Colours = new ULAplusColour[16];
     for (int i = 0; i < 16; i++)
     {
         Colours[i] = new ULAplusColour(i, this);
     }
 }
Esempio n. 3
0
        public byte GetRadastanColourByte(ULAplusColour ColourL, ULAplusColour ColourR)
        {
            byte rv = Convert.ToByte((ColourL.Index * 16) + ColourR.Index);

            return(rv);
        }