~gasp-lessons-team/gasp-lessons/gasp-lessons

« back to all changes in this revision

Viewing changes to gasp_course/source/3-pretty.rst

  • Committer: Jeffrey Elkner
  • Date: 2019-03-12 18:37:37 UTC
  • Revision ID: jeff@elkner.net-20190312183737-twto2c9jy5c2nexn
Fix Mouthing off parameters and wording in sheet 3

Show diffs side-by-side

added added

removed removed

Lines of Context:
212
212
degrees, that's what you'll use to tell the computer where to start and stop
213
213
drawing the circle.
214
214
 
215
 
What should happen when you type ``Arc((300, 195), 20, 180, 20)``? What
 
215
What should happen when you type ``Arc((300, 200), 30, 225, 20)``? What
216
216
actually happens?
217
217
 
218
218
The reason this happens is because when you pass the 360 mark on a circle, it
219
219
doesn't automatically jump back to 0. Instead it keeps on counting. This means
220
 
that instead of ``Arc((300, 200), 30, 180, 20)``, you need to type
221
 
``Arc((300, 200), 30, 180, 380)``.
 
220
that typing ``Arc((300, 200), 30, 225, 20)`` is the same as typing
 
221
``Arc((300, 200), 30, 225, 380)``.
222
222
 
223
223
.. describe:: Challenge 1
224
224
 
362
362
 
363
363
This is all a digression. Before we started blathering about functions, you
364
364
were thinking about how to draw two --- or more --- of those faces.  Maybe
365
 
you've guessed what's coming next: the Right Thing to do is to write a
 
365
you've guessed what's coming next: the right thing to do is to write a
366
366
*function* that draws a face. The function should take arguments saying where
367
367
in the graphics window the face should go. When you've done that, drawing 5
368
368
faces will just mean 5 uses of your function, instead of having to copy out the
539
539
 
540
540
    .. sourcecode:: python
541
541
    
542
 
        I don't know what should go in here
 
542
        I do not know what should go in here
543
543
 
544
544
 
545
545
Some nice patterns