首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > parabola-console-lib

parabola-console-lib

  • 资源大小:20.38 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

A lib created for flicker-free output that works on both the Windows console and native Linux terminals. Example code: First, a minimal hello world example. Just include Parabola.cs in your project, and remember to call Screen.Initialize before anything else. using System;using ParabolaConsoleLib;namespace ParabolaTest{ class MainClass{ public static void Main (string[] args){ Screen.Initialize(25,80); Screen.Write(2,20,"Hello world!",ConsoleColor.Green); } }} That"s it! Next, a more complex example using the Panel class, which lets you specify a starting point other than (0,0). using System;using ParabolaConsoleLib;namespace ParabolaTest{ class MainClass{ public static void Main (string[] args){ Screen.Initialize(25,80); Panel map = new Panel(3,13,10,20); //10x20 panel at (3,13) for(int i=0;i<10;++i){ for(int j=0;j<20;++j){ if(i==0||j==0||i==9||j==19){ map.Write(i,j,"#"); } else{ map.Wr

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.182215s