public void DrowSquare(Display display, Point startPoint, int width, ColorDto color) { DrowRectangle(display, startPoint, width, width, color); }
public void DrowRectangle(Display display, Point startPoint, int width, int height, ColorDto color) { var point = new Point(); for (int i = 0; i < width; i++) { point.X = i + startPoint.X; for (int j = 0; j < height; j++) { point.Y = j + startPoint.Y; display.SetPixelColor(point, color); } } }
public void SetPixelColor(Point point, ColorDto ColorDto) { pixels[point.X, point.Y] = colorFacrtory.GetColor(ColorDto); }