|
@@ -1,11 +1,12 @@
|
|
|
-# Chapter 2. Drawing a line
|
|
|
|
|
|
|
+# Глава 2. Рисование линий
|
|
|
|
|
|
|
|
A line is a series of adjacent points. We will limit ourselves to two types of
|
|
A line is a series of adjacent points. We will limit ourselves to two types of
|
|
|
lines:
|
|
lines:
|
|
|
|
|
+
|
|
|
Horizontal and vertical lines
|
|
Horizontal and vertical lines
|
|
|
- When drawing these lines point by point, just one coordinate changes,
|
|
|
|
|
- while the other stays constant.
|
|
|
|
|
-A point is an object consisting of x and y coordinates, and we define it and
|
|
|
|
|
|
|
+
|
|
|
|
|
+- When drawing these lines point by point, just one coordinate changes, while the other stays constant.
|
|
|
|
|
+- A point is an object consisting of x and y coordinates, and we define it and
|
|
|
use it like this:
|
|
use it like this:
|
|
|
|
|
|
|
|
```nim
|
|
```nim
|