Changeset 2083


Ignore:
Timestamp:
Nov 27, 2007, 10:04:54 AM (13 years ago)
Author:
Sam Hocevar
Message:
  • Use the bigger font for the C# test scroller.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/csharp/test.cs

    r2082 r2083  
    3434        startTime = DateTime.Now;
    3535
    36         string message = "LIBCACA *** 100% PURE WIN *** ";
     36        string message = "POWERED BY LIBCACA --- OLDSCHOOL TEXT EFFECTS ARE 100% PURE WIN --- ";
    3737
    3838        scroll = new CuculCanvas(new Size(message.Length, 1));
     
    4040        scroll.putStr(new Point(0, 0), message);
    4141
    42         CuculFont f = new CuculFont(CuculFont.getList()[0]);
     42        CuculFont f = new CuculFont(CuculFont.getList()[1]);
    4343        int w = f.Size.Width * message.Length;
    4444        int h = f.Size.Height;
     
    5858        int w = Size.Width;
    5959        int h = Size.Height;
    60         int x = (int)(t / 10) % (6 * w);
     60        int x = (int)(t / 10) % (12 * w);
    6161        int y = (int)(h * (2.0 + Math.Sin(t / 200.0)) / 4);
    62         ditherBitmap(new Rectangle(- x, h / 2 - y, w * 6, y * 2), d, image);
    63         ditherBitmap(new Rectangle(6 * w - x, h / 2 - y, w * 6, y * 2), d, image);
     62        ditherBitmap(new Rectangle(- x, h / 2 - y, w * 12, y * 2), d, image);
     63        ditherBitmap(new Rectangle(12 * w - x, h / 2 - y, w * 12, y * 2), d, image);
    6464
    6565        setColorAnsi(Libcucul.WHITE, Libcucul.BLACK);
Note: See TracChangeset for help on using the changeset viewer.