﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WakBoy
{
    class Testes
    {
        /*
          ColorHelper objColor = ColorHelper.FromArgb(255, 153, 0);
          var brightness = objColor.GetBrightness();

          ColorHelper objColor2 = ColorHelper.FromArgb(204, 153, 0);
          var brightness2 = objColor2.GetBrightness();

          MessageBox.Show("brightness1:" + brightness.ToString() + "    \n brightness2:" + brightness2.ToString());

          brightness  > 0.5
          brightness2 > 0.4

          brightness2 = ServiceTela.mudarClaridadeCor(objColor2, 0.17f).GetBrightness();
          MessageBox.Show("brightness1:" + brightness.ToString() + "    \n brightness2:" + brightness2.ToString());

          brightness  > 0.5
          brightness2 > 0.5
          */
        /*
        HSLColor objColor = Service.Lib.HSLColor.FromRGB(ColorHelper.FromArgb(255, 153, 0));
        HSLColor objColor2 = Service.Lib.HSLColor.FromRGB(ColorHelper.FromArgb(204, 153, 0));

        MessageBox.Show(
            " ANTES"
            +" \n---------------------\n"
            +"Cor1 " 
            + " \n HUE: " + objColor.Hue 
            + " \n Saturation: " + objColor.Saturation 
            + " \n Luminosity: " + objColor.Luminosity
            + " \n RGB: " + Service.Common.ColorHelper.HexConverter(objColor.ToRGB())
            + " \n---------------------\n"
            + "Cor2 "
            + " \n HUE: " + objColor2.Hue
            + " \n Saturation: " + objColor2.Saturation
            + " \n Luminosity: " + objColor2.Luminosity
            + " \n RGB: " + Service.Common.ColorHelper.HexConverter(objColor2.ToRGB())
            + " \n---------------------\n"
        );

        objColor2.Hue = objColor.Hue;
        objColor2.Saturation = objColor.Saturation;
        objColor2.Luminosity = objColor.Luminosity;

        MessageBox.Show(
           " DEPOIS"
           + " \n---------------------\n"
           + "Cor1 "
           + " \n HUE: " + objColor.Hue
           + " \n Saturation: " + objColor.Saturation
           + " \n Luminosity: " + objColor.Luminosity
           + " \n RGB: " + Service.Common.ColorHelper.HexConverter(objColor.ToRGB())
           + " \n---------------------\n"
           + "Cor2 "
           + " \n HUE: " + objColor2.Hue
           + " \n Saturation: " + objColor2.Saturation
           + " \n Luminosity: " + objColor2.Luminosity
           + " \n RGB: " + Service.Common.ColorHelper.HexConverter(objColor2.ToRGB())
           + " \n---------------------\n"
       );*/

        //objColor2.Hue
    }
}
