Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Reform
reform-handbook
Commits
b81c53de
Commit
b81c53de
authored
Nov 12, 2020
by
Muto
Browse files
Add correct ellipse section
parent
e213a2be
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/source/tutorial.rst
View file @
b81c53de
...
...
@@ -115,11 +115,12 @@ To fill a blue rectangle from ``20,20`` to ``60,30``:
(fill-rect 20 20 60 30 #x00f)
To fill a yellow ellipse from ``20,20`` to ``60,30``:
To fill a yellow ellipse, with the center at ``20,20`` with a width of
``60`` and a height of ``30``:
.. code-block:: none
(fill-ellipse 20 20 60 30 #ff
0
)
(
pixel-
fill-ellipse 20 20 60 30 #
xffff00
ff)
Drawing Shapes Using the Mouse
------------------------------
...
...
@@ -129,7 +130,7 @@ To fill a purple circle, with a radius of ``10``, at the mouse cursor:
.. code-block:: none
(on-mouse-down
(
fill-circl
e mouse-x mouse-y 10
#
0ff))
(
pixel-fill-ellips
e mouse-x mouse-y 10
10 #xffff0
0ff))
Draw a sprite
-------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment