Ejemplo n.º 1
0
        void RenderBGR0()
        {
            /*	if (bgrtoggle < 1)
                {
                    bgrtoggle++;
                    return;
                }
                bgrtoggle-=1;*/

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

            int z = Random(40, 255);
            Blitter b = new Blitter(bg);
            b.Color = MakeColor(z, z, z);
            b.SetPixel(Random(0, 255), Random(0, 255));
            bgrtick++;
        }
Ejemplo n.º 2
0
 void print_char(Blitter b, int c, Color col)
 {
     if(c < 0 || c > 96) c = 2;
     byte[] img = smal_tbl[c];
     int imgptr = 1;
     int w = img[0];
     for(int yc = 0; yc < 7; yc++)
         for(int xc = 0; xc < w; xc++) {
             int p = img[imgptr++];
             if(p == 1)
                 for(int px = 0; px < _scale; px++)
                     for(int py = 0; py < _scale; py++)
                         b.SetPixel(xc * _scale + px, yc * _scale + py, col);
         }
 }