Catalogue of Posts

Wednesday, August 19, 2020

Basic Graphics #1 - Point (and Screen)

 Using  -  The Python Computer Language  
                 Turtle Graphics Library

I have been working on a few computer programs
so that I can do some graphics for different projects.

The programs are very simple, 
and anyone who wants to start from scratch
to write computer programs, or do some graphics,
may find these useful.
                 

1.  POINT    (AND SCREEN)



SAVE AS

>>> import turtle             ENTER
>>>                           ENTER
>>> Pt = turtle.Turtle()      ENTER
>>>                           ENTER
>>> turtle.done()             ENTER
>>> 

SAVE
 

Pt is –

            At the default start position

            At the centre of screen

            At    0    The Origin

The curved side of the arrow head is the  

    back
The pixel at the front point of the arrow
    head, is its position



TO SET PYTHON UP ON YOUR COMPUTER
-    go to    https://www.python.org/downloads/
-    download the latest version of Python for your type of system
-    follow the prompts to install it on your system
Mine is Windows 10, so in Windows 10 -
-    access it by clicking on the "start" button on your task bar
     -    scroll down the program list until you get to "Python"
          -    click on "Python", and 4 items will appear       
               -    IDLE    - this is the file that you write programs in
               -    Python    - this is the file that you run your programs in
               -    Python Manuals    - information on how to use Python
               -    Python Module Docs    - lists of programs within Python
          -    click on IDLE
               -    the IDLE file will come up
               -    Save your file using the drop down menu "file" at the top,
                     following the prompts, into a folder
               -    type your program in this file
               -    when you type in -    xxxx = turtle.Turtle() 
                     a basic window with an arrow head in it will appear behind your IDLE file
               -    move the window to the side of your IDLE file so that you can see it
               -    finish typing in your program
               -    Save your program
-    click on the "start" button on your task bar
     -    scroll down to, then click on, "Snip and Sketch"
          -    take a "Snip and Sketch" of  your finished window
               and save it into a folder
The images above are "Snip and Sketch"

PROGRAMS
The program above, and the ones following in other posts,
are my ideas, from the video below that I've been learning from.
:)


HAPPY COMPUTER PROGRAMMING  :)



Black Framed Images, and Text (c) Katherine Stuart 2020
Dochas Books Film

No comments:

Post a Comment