示例#1
0
 public void SetPixel(int x, int y, char value)
 {
     if (x >= 0 && x <= width && y >= 0 && y <= height)
     {
         screen[y, x] = new ScreenPixel(value);
     }
 }
示例#2
0
 public void SetPixel(int x, int y, ScreenPixel value)
 {
     if (x >= 0 && x <= width && y >= 0 && y <= height)
     {
         screen[y, x] = value;
     }
 }
示例#3
0
 protected void ClearScreen()
 {
     for (int i = 0; i < height; i++)
     {
         for (int j = 0; j < width; j++)
         {
             screen[i, j] = new ScreenPixel(' ');
         }
     }
 }
示例#4
0
 public void SetPixel(Vector2 point, ScreenPixel value)
 {
     SetPixel(point.x, point.y, value);
 }