Exemple #1
0
        // Token: 0x060097A8 RID: 38824 RVA: 0x0036CB58 File Offset: 0x0036AD58
        public static List <Color> GenerateHsvSpectrum()
        {
            List <Color> list = new List <Color>(8);

            for (int i = 0; i < 359; i++)
            {
                list.Add(HSVUtil.ConvertHsvToRgb((double)i, 1.0, 1.0));
            }
            list.Add(HSVUtil.ConvertHsvToRgb(0.0, 1.0, 1.0));
            return(list);
        }
Exemple #2
0
        // Token: 0x060097AA RID: 38826 RVA: 0x0036CCA4 File Offset: 0x0036AEA4
        public static Texture2D GenerateColorTexture(Color JBDEDFFOLMI, Texture2D COKJKFECOOG)
        {
            int      width    = COKJKFECOOG.width;
            int      height   = COKJKFECOOG.height;
            HsvColor hsvColor = HSVUtil.ConvertRgbToHsv((double)((int)(JBDEDFFOLMI.r * 255f)), (double)((int)(JBDEDFFOLMI.g * 255f)), (double)((int)(JBDEDFFOLMI.b * 255f)));

            for (int i = 0; i < height; i++)
            {
                for (int j = 0; j < width; j++)
                {
                    HsvColor hsvColor2 = hsvColor;
                    hsvColor2.V = (double)((float)i / (float)height);
                    hsvColor2.S = (double)((float)j / (float)width);
                    Color color = HSVUtil.ConvertHsvToRgb(hsvColor2.H, hsvColor2.S, hsvColor2.V);
                    COKJKFECOOG.SetPixel(j, i, color);
                }
            }
            COKJKFECOOG.Apply();
            return(COKJKFECOOG);
        }
Exemple #3
0
 // Token: 0x060097A4 RID: 38820 RVA: 0x0036C8BC File Offset: 0x0036AABC
 public static HsvColor ConvertRgbToHsv(Color HABLFKCCKLN)
 {
     return(HSVUtil.ConvertRgbToHsv((double)((int)(HABLFKCCKLN.r * 255f)), (double)((int)(HABLFKCCKLN.g * 255f)), (double)((int)(HABLFKCCKLN.b * 255f))));
 }
Exemple #4
0
 // Token: 0x060097A6 RID: 38822 RVA: 0x0036CA07 File Offset: 0x0036AC07
 public static Color ConvertHsvToRgb(HsvColor HABLFKCCKLN)
 {
     return(HSVUtil.ConvertHsvToRgb(HABLFKCCKLN.H, HABLFKCCKLN.S, HABLFKCCKLN.V));
 }
Exemple #5
0
 // Token: 0x060097AB RID: 38827 RVA: 0x0036CD66 File Offset: 0x0036AF66
 public static Texture2D GenerateColorTexture(int CJDDBGPKDLP, int PBMAGEKDPLI, Color JBDEDFFOLMI)
 {
     return(HSVUtil.GenerateColorTexture(JBDEDFFOLMI, new Texture2D(CJDDBGPKDLP, PBMAGEKDPLI)));
 }