Ejemplo n.º 1
0
    void ContextMenu_TestColorSystem()
    {
        int    maxi = 10;
        double dm   = 1.0 / maxi;

        for (int i = -maxi; i < maxi; i++)
        {
            var fi = ((double)i) / ((double)(maxi / 2));
            var s  = SpanF.Create(fi, fi + dm);
            var g  = SpanAPI.spanColorSignedForGreen(s);
            Debug.Log("s=g: " + s + "=" + g);
        }
    }