Changeset 2083 for libcaca/trunk/csharp
- Timestamp:
- Nov 27, 2007, 10:04:54 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/csharp/test.cs
r2082 r2083 34 34 startTime = DateTime.Now; 35 35 36 string message = " LIBCACA *** 100% PURE WIN ***";36 string message = "POWERED BY LIBCACA --- OLDSCHOOL TEXT EFFECTS ARE 100% PURE WIN --- "; 37 37 38 38 scroll = new CuculCanvas(new Size(message.Length, 1)); … … 40 40 scroll.putStr(new Point(0, 0), message); 41 41 42 CuculFont f = new CuculFont(CuculFont.getList()[ 0]);42 CuculFont f = new CuculFont(CuculFont.getList()[1]); 43 43 int w = f.Size.Width * message.Length; 44 44 int h = f.Size.Height; … … 58 58 int w = Size.Width; 59 59 int h = Size.Height; 60 int x = (int)(t / 10) % ( 6* w);60 int x = (int)(t / 10) % (12 * w); 61 61 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); 64 64 65 65 setColorAnsi(Libcucul.WHITE, Libcucul.BLACK);
Note: See TracChangeset
for help on using the changeset viewer.