Exemplo n.º 1
0
        public override UnityEngine.Color GetColour(double x, double y)
        {
            // Read:
            Color colour = SourceModule.GetColour(x, y);

            // Get:
            float channel = LabRgb.B(colour.r, colour.g, colour.b);

            return(new Color(channel, channel, channel, 1f));
        }
Exemplo n.º 2
0
        public override double GetValue(double x, double y)
        {
            // Read:
            Color colour = SourceModule.GetColour(x, y);

            // Get:
            float channel = LabRgb.B(colour.r, colour.g, colour.b);

            return(channel);
        }