Changes
Page history
[~]api/*: fixed links to other pages
authored
Mar 13, 2020
by
cactusfluo
Show whitespace changes
Inline
Side-by-side
api/drawing-functions.md
View page @
bb35b7d0
...
@@ -68,7 +68,7 @@ Puts the passed charater at each cell of the active layer.
...
@@ -68,7 +68,7 @@ Puts the passed charater at each cell of the active layer.
Draws a line from
`[x0, y0]`
to
`[x1, y1]`
on the active layer with the passed
Draws a line from
`[x0, y0]`
to
`[x1, y1]`
on the active layer with the passed
character. If no character is passed,
`line()`
will use the set line character
character. If no character is passed,
`line()`
will use the set line character
(see
[
set_line_char
](
#set_line_char
)
).
(see
[
set_line_char
()
](
#set_line_char
)
).
### Parameters:
### Parameters:
-
`x0`
Number: x coordinate of the first point
-
`x0`
Number: x coordinate of the first point
...
@@ -147,10 +147,10 @@ with "012345678"
...
@@ -147,10 +147,10 @@ with "012345678"
8: bottom-right corner
8: bottom-right corner
```
```
The border string can also be set through
`set_rect_border()`
(see
The border string can also be set through
`set_rect_border()`
(see
[
set_rect_border
](
#set_rect_border
)
).
[
set_rect_border
()
](
#set_rect_border
)
).
By default, the top-left corner of the rectangle is placed at the passed
By default, the top-left corner of the rectangle is placed at the passed
coordinates, but it can also be placed differently via
`set_rect_mode()`
(see
coordinates, but it can also be placed differently via
`set_rect_mode()`
(see
[
set_rect_mode
](
#set_rect_mode
)
).
[
set_rect_mode
()
](
#set_rect_mode
)
).
### Parameters:
### Parameters:
-
`x`
Number: x coordinate of the rectangle
-
`x`
Number: x coordinate of the rectangle
...
...
...
...