Esempio n. 1
0
        void RenderBGR8()
        {
            if (bgrtoggle < 2)
            {
                bgrtoggle++;
                return;
            }
            bgrtoggle -= 2;

            if (bgrtick > 128)
            {
                bgrproc = null;
                return;
            }

            Blitter b = new Blitter(bg);
            if (bgrtick < 64)
            {
                b.Color = ColorMorph(bgr8_col1, bgr8_col2, bgrtick, 64);
                b.Line(0, 128 - bgrtick, 255, 128 - bgrtick);
                b.Color = ColorMorph(bgr8_col1, bgr8_col2, bgrtick, 64);
                b.Line(0, 128 + bgrtick, 255, 128 + bgrtick);
            }
            else
            {
                b.Color = ColorMorph(bgr8_col2, bgr8_col3, bgrtick - 64, 64);
                b.Line(0, 128 - bgrtick, 255, 128 - bgrtick);
                b.Color = ColorMorph(bgr8_col2, bgr8_col3, bgrtick - 64, 64);
                b.Line(0, 128 + bgrtick, 255, 128 + bgrtick);
            }

            bgrtick++;
        }