Exemplo n.º 1
0
        public bool TestRGBAToNative(uint expected, uint rgba)
        {
            uint actual = new ColorPattern(OrderAndDepth, null).RGBAToNative(rgba);

            PrintResultsUInt(expected, actual);
            return(actual == expected);
        }
Exemplo n.º 2
0
        public bool TestNativeToRGBA(uint expected, uint c)
        {
            uint actual = new ColorPattern(OrderAndDepth, null).NativeToRGBA(c);

            PrintResultsUInt(expected, actual);
            return(actual == expected);
        }
Exemplo n.º 3
0
        public void NewSpec(InputModule mod)
        {
            uint seed = mod.Input;

            _table = new ColorPattern(seed, null);

            mod.Value = seed;

            _rgba.SetText(null, "", null);
            _rgba.Visible = true;

            _native.SetText(null, "", null);
            _native.Visible = true;
        }