SlideShare une entreprise Scribd logo
1  sur  32
BASIC-256 Graphics
After viewing this presentation, you will be able to produce a rectangle, circle, and triangle in the graphics output of the BASIC-256 screen.
 
 
0  1  2  3  4  5  6  7  8  9  10
0 1 2 3 4 5 6 7 8 9 10
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 1,1
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 3,2
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 5,6
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 ?
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 8,2
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 ?
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 6,8
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 ?
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 8,4
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 1,1 5,6
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 1,1 5,6 line 1,1,5,6
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 1,1 5,6 line 5,6,9,6
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 1,1 5,6 9,6 line 5,6,9,6
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 1,1 5,6 line _______ ? 9,6
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 1,1 5,6 line 9,6,7,2 7,2 9,6
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 1,1
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 1,1
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 1,1 over 4 (width)
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 1,1 down 5 (height)
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 1,1 rect 1,1,4,5 over 4 (width) down 5 (height)
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 rect ______
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 2,3 rect 2,3,6,4 over 6 (width) down 4 (height)
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 5,6
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 5,6 center to the edge 2 (radius)
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 ? circle _____
0  1  2  3  4  5  6  7  8  9  10 0 1 2 3 4 5 6 7 8 9 10 6,4 circle 6,4,3

Contenu connexe

Tendances (20)

Notas camilo
Notas camiloNotas camilo
Notas camilo
 
Camilo exel
Camilo exelCamilo exel
Camilo exel
 
Taller d excel 1°
Taller d excel 1°Taller d excel 1°
Taller d excel 1°
 
Beschreibung Simpsons
Beschreibung SimpsonsBeschreibung Simpsons
Beschreibung Simpsons
 
Splitsen 5 tot 9
Splitsen 5 tot 9Splitsen 5 tot 9
Splitsen 5 tot 9
 
Tna - MATEMÁTICA
Tna - MATEMÁTICATna - MATEMÁTICA
Tna - MATEMÁTICA
 
2010 sri chaitanyas_aieee_key
2010 sri chaitanyas_aieee_key2010 sri chaitanyas_aieee_key
2010 sri chaitanyas_aieee_key
 
FUNCION MINIMO
FUNCION MINIMOFUNCION MINIMO
FUNCION MINIMO
 
таблица разрядов
таблица разрядовтаблица разрядов
таблица разрядов
 
Οι αριθμοί μέχρι το 3.000
Οι αριθμοί μέχρι το 3.000Οι αριθμοί μέχρι το 3.000
Οι αριθμοί μέχρι το 3.000
 
Touches
TouchesTouches
Touches
 
Cálculo 2º a 8º básico sumas y restas (9)
Cálculo 2º a 8º básico sumas y restas (9)Cálculo 2º a 8º básico sumas y restas (9)
Cálculo 2º a 8º básico sumas y restas (9)
 
Suduko
SudukoSuduko
Suduko
 
Resultado da Atividade 1
Resultado da Atividade 1Resultado da Atividade 1
Resultado da Atividade 1
 
Αριθμογραμμή από το 1 έως το 10
Αριθμογραμμή από το 1 έως το 10Αριθμογραμμή από το 1 έως το 10
Αριθμογραμμή από το 1 έως το 10
 
Arabicqt 201212- الخلوة الشخصية من موقع الحياة لك
Arabicqt 201212- الخلوة الشخصية  من موقع الحياة لك Arabicqt 201212- الخلوة الشخصية  من موقع الحياة لك
Arabicqt 201212- الخلوة الشخصية من موقع الحياة لك
 
Numero 7'
Numero 7'Numero 7'
Numero 7'
 
Numeros dedos-dados recta 10 p.
Numeros dedos-dados recta 10 p.Numeros dedos-dados recta 10 p.
Numeros dedos-dados recta 10 p.
 
Log log numbered
Log log numberedLog log numbered
Log log numbered
 
Experiencia
ExperienciaExperiencia
Experiencia
 

Similaire à Basic Drawing (20)

Relacio Canvis
Relacio CanvisRelacio Canvis
Relacio Canvis
 
R2 resultados
R2  resultadosR2  resultados
R2 resultados
 
R2 resultados
R2   resultadosR2   resultados
R2 resultados
 
R2 resultados
R2   resultadosR2   resultados
R2 resultados
 
Test Pauli dan Krepelin silahkan baca disini
Test Pauli dan Krepelin silahkan baca disiniTest Pauli dan Krepelin silahkan baca disini
Test Pauli dan Krepelin silahkan baca disini
 
contoh soal Pauli kraepelin
contoh soal Pauli kraepelincontoh soal Pauli kraepelin
contoh soal Pauli kraepelin
 
Colloque lille2017 sequence7a4-ambigaine_robin-amand_fr
Colloque lille2017 sequence7a4-ambigaine_robin-amand_frColloque lille2017 sequence7a4-ambigaine_robin-amand_fr
Colloque lille2017 sequence7a4-ambigaine_robin-amand_fr
 
Tabla puntaje nota
Tabla puntaje notaTabla puntaje nota
Tabla puntaje nota
 
5
55
5
 
Tes koran
Tes koranTes koran
Tes koran
 
Notas rec 14-11
Notas rec   14-11Notas rec   14-11
Notas rec 14-11
 
NOTAS
NOTASNOTAS
NOTAS
 
Colloque lille2017 sequence7a4-ambigaine_robin-amand_en
Colloque lille2017 sequence7a4-ambigaine_robin-amand_enColloque lille2017 sequence7a4-ambigaine_robin-amand_en
Colloque lille2017 sequence7a4-ambigaine_robin-amand_en
 
40 puzzles-numériques-de-1-à-10
40 puzzles-numériques-de-1-à-1040 puzzles-numériques-de-1-à-10
40 puzzles-numériques-de-1-à-10
 
Binary Search Tree
Binary Search TreeBinary Search Tree
Binary Search Tree
 
Planilla de notas (1)
Planilla de notas (1)Planilla de notas (1)
Planilla de notas (1)
 
Harness
HarnessHarness
Harness
 
Tablatura Flamenco : Alma
Tablatura Flamenco : AlmaTablatura Flamenco : Alma
Tablatura Flamenco : Alma
 
Notaspublicadasfinales12
Notaspublicadasfinales12Notaspublicadasfinales12
Notaspublicadasfinales12
 
Tabela kc e ks
Tabela kc e ksTabela kc e ks
Tabela kc e ks
 

Dernier

Formation M2i - Intelligence Artificielle Comment booster votre productivité ...
Formation M2i - Intelligence Artificielle Comment booster votre productivité ...Formation M2i - Intelligence Artificielle Comment booster votre productivité ...
Formation M2i - Intelligence Artificielle Comment booster votre productivité ...M2i Formation
 
SUPPORT DE SUR COURS_GOUVERNANCE_SI_M2.pptx
SUPPORT DE SUR COURS_GOUVERNANCE_SI_M2.pptxSUPPORT DE SUR COURS_GOUVERNANCE_SI_M2.pptx
SUPPORT DE SUR COURS_GOUVERNANCE_SI_M2.pptxssuserbd075f
 
La nouvelle femme . pptx Film français
La   nouvelle   femme  . pptx  Film françaisLa   nouvelle   femme  . pptx  Film français
La nouvelle femme . pptx Film françaisTxaruka
 
A3iFormations, organisme de formations certifié qualiopi.
A3iFormations, organisme de formations certifié qualiopi.A3iFormations, organisme de formations certifié qualiopi.
A3iFormations, organisme de formations certifié qualiopi.Franck Apolis
 
presentation l'interactionnisme symbolique finale.pptx
presentation l'interactionnisme symbolique  finale.pptxpresentation l'interactionnisme symbolique  finale.pptx
presentation l'interactionnisme symbolique finale.pptxMalikaIdseaid1
 
Approche-des-risques-par-l’analyse-des-accidents-1.pptx
Approche-des-risques-par-l’analyse-des-accidents-1.pptxApproche-des-risques-par-l’analyse-des-accidents-1.pptx
Approche-des-risques-par-l’analyse-des-accidents-1.pptxssusercbaa22
 
Cours-irrigation_et_drainage_cours1.pptx
Cours-irrigation_et_drainage_cours1.pptxCours-irrigation_et_drainage_cours1.pptx
Cours-irrigation_et_drainage_cours1.pptxlamourfrantz
 
systeme expert_systeme expert_systeme expert
systeme expert_systeme expert_systeme expertsysteme expert_systeme expert_systeme expert
systeme expert_systeme expert_systeme expertChristianMbip
 
MaintenanceLa Maintenance Corrective.ppt
MaintenanceLa Maintenance Corrective.pptMaintenanceLa Maintenance Corrective.ppt
MaintenanceLa Maintenance Corrective.pptssusercbaa22
 
Boléro. pptx Film français réalisé par une femme.
Boléro.  pptx   Film   français   réalisé  par une  femme.Boléro.  pptx   Film   français   réalisé  par une  femme.
Boléro. pptx Film français réalisé par une femme.Txaruka
 
666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptx
666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptx666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptx
666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptxSAID MASHATE
 
présentation sur l'échafaudage dans des travaux en hauteur
présentation sur l'échafaudage dans des travaux en hauteurprésentation sur l'échafaudage dans des travaux en hauteur
présentation sur l'échafaudage dans des travaux en hauteurdinaelchaine
 
Bolero. pptx . Film de A nnne Fontaine
Bolero. pptx . Film   de  A nnne FontaineBolero. pptx . Film   de  A nnne Fontaine
Bolero. pptx . Film de A nnne FontaineTxaruka
 
Fondation Louis Vuitton. pptx
Fondation      Louis      Vuitton.   pptxFondation      Louis      Vuitton.   pptx
Fondation Louis Vuitton. pptxTxaruka
 
Grammaire pour les élèves de la 6ème.doc
Grammaire pour les élèves de la  6ème.docGrammaire pour les élèves de la  6ème.doc
Grammaire pour les élèves de la 6ème.docKarimKhrifech
 
Sidonie au Japon . pptx Un film français
Sidonie    au   Japon  .  pptx  Un film françaisSidonie    au   Japon  .  pptx  Un film français
Sidonie au Japon . pptx Un film françaisTxaruka
 
COURS SVT 3 EME ANNEE COLLEGE 2EME SEM.pdf
COURS SVT 3 EME ANNEE COLLEGE 2EME SEM.pdfCOURS SVT 3 EME ANNEE COLLEGE 2EME SEM.pdf
COURS SVT 3 EME ANNEE COLLEGE 2EME SEM.pdfabatanebureau
 
gestion des conflits dans les entreprises
gestion des  conflits dans les entreprisesgestion des  conflits dans les entreprises
gestion des conflits dans les entreprisesMajdaKtiri2
 
LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...
LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...
LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...Faga1939
 

Dernier (20)

Formation M2i - Intelligence Artificielle Comment booster votre productivité ...
Formation M2i - Intelligence Artificielle Comment booster votre productivité ...Formation M2i - Intelligence Artificielle Comment booster votre productivité ...
Formation M2i - Intelligence Artificielle Comment booster votre productivité ...
 
SUPPORT DE SUR COURS_GOUVERNANCE_SI_M2.pptx
SUPPORT DE SUR COURS_GOUVERNANCE_SI_M2.pptxSUPPORT DE SUR COURS_GOUVERNANCE_SI_M2.pptx
SUPPORT DE SUR COURS_GOUVERNANCE_SI_M2.pptx
 
La nouvelle femme . pptx Film français
La   nouvelle   femme  . pptx  Film françaisLa   nouvelle   femme  . pptx  Film français
La nouvelle femme . pptx Film français
 
A3iFormations, organisme de formations certifié qualiopi.
A3iFormations, organisme de formations certifié qualiopi.A3iFormations, organisme de formations certifié qualiopi.
A3iFormations, organisme de formations certifié qualiopi.
 
presentation l'interactionnisme symbolique finale.pptx
presentation l'interactionnisme symbolique  finale.pptxpresentation l'interactionnisme symbolique  finale.pptx
presentation l'interactionnisme symbolique finale.pptx
 
Approche-des-risques-par-l’analyse-des-accidents-1.pptx
Approche-des-risques-par-l’analyse-des-accidents-1.pptxApproche-des-risques-par-l’analyse-des-accidents-1.pptx
Approche-des-risques-par-l’analyse-des-accidents-1.pptx
 
Cours-irrigation_et_drainage_cours1.pptx
Cours-irrigation_et_drainage_cours1.pptxCours-irrigation_et_drainage_cours1.pptx
Cours-irrigation_et_drainage_cours1.pptx
 
systeme expert_systeme expert_systeme expert
systeme expert_systeme expert_systeme expertsysteme expert_systeme expert_systeme expert
systeme expert_systeme expert_systeme expert
 
MaintenanceLa Maintenance Corrective.ppt
MaintenanceLa Maintenance Corrective.pptMaintenanceLa Maintenance Corrective.ppt
MaintenanceLa Maintenance Corrective.ppt
 
Boléro. pptx Film français réalisé par une femme.
Boléro.  pptx   Film   français   réalisé  par une  femme.Boléro.  pptx   Film   français   réalisé  par une  femme.
Boléro. pptx Film français réalisé par une femme.
 
666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptx
666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptx666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptx
666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptx
 
présentation sur l'échafaudage dans des travaux en hauteur
présentation sur l'échafaudage dans des travaux en hauteurprésentation sur l'échafaudage dans des travaux en hauteur
présentation sur l'échafaudage dans des travaux en hauteur
 
Bolero. pptx . Film de A nnne Fontaine
Bolero. pptx . Film   de  A nnne FontaineBolero. pptx . Film   de  A nnne Fontaine
Bolero. pptx . Film de A nnne Fontaine
 
Fondation Louis Vuitton. pptx
Fondation      Louis      Vuitton.   pptxFondation      Louis      Vuitton.   pptx
Fondation Louis Vuitton. pptx
 
Grammaire pour les élèves de la 6ème.doc
Grammaire pour les élèves de la  6ème.docGrammaire pour les élèves de la  6ème.doc
Grammaire pour les élèves de la 6ème.doc
 
Sidonie au Japon . pptx Un film français
Sidonie    au   Japon  .  pptx  Un film françaisSidonie    au   Japon  .  pptx  Un film français
Sidonie au Japon . pptx Un film français
 
COURS SVT 3 EME ANNEE COLLEGE 2EME SEM.pdf
COURS SVT 3 EME ANNEE COLLEGE 2EME SEM.pdfCOURS SVT 3 EME ANNEE COLLEGE 2EME SEM.pdf
COURS SVT 3 EME ANNEE COLLEGE 2EME SEM.pdf
 
gestion des conflits dans les entreprises
gestion des  conflits dans les entreprisesgestion des  conflits dans les entreprises
gestion des conflits dans les entreprises
 
Evaluación Alumnos de Ecole Victor Hugo
Evaluación Alumnos de Ecole  Victor HugoEvaluación Alumnos de Ecole  Victor Hugo
Evaluación Alumnos de Ecole Victor Hugo
 
LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...
LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...
LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...
 

Basic Drawing

  • 2. After viewing this presentation, you will be able to produce a rectangle, circle, and triangle in the graphics output of the BASIC-256 screen.
  • 3.  
  • 4.  
  • 5. 0 1 2 3 4 5 6 7 8 9 10
  • 6. 0 1 2 3 4 5 6 7 8 9 10
  • 7. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 1,1
  • 8. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 3,2
  • 9. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 5,6
  • 10. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 ?
  • 11. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 8,2
  • 12. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 ?
  • 13. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 6,8
  • 14. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 ?
  • 15. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 8,4
  • 16. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 1,1 5,6
  • 17. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 1,1 5,6 line 1,1,5,6
  • 18. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 1,1 5,6 line 5,6,9,6
  • 19. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 1,1 5,6 9,6 line 5,6,9,6
  • 20. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 1,1 5,6 line _______ ? 9,6
  • 21. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 1,1 5,6 line 9,6,7,2 7,2 9,6
  • 22. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 1,1
  • 23. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 1,1
  • 24. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 1,1 over 4 (width)
  • 25. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 1,1 down 5 (height)
  • 26. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 1,1 rect 1,1,4,5 over 4 (width) down 5 (height)
  • 27. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 rect ______
  • 28. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 2,3 rect 2,3,6,4 over 6 (width) down 4 (height)
  • 29. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 5,6
  • 30. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 5,6 center to the edge 2 (radius)
  • 31. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 ? circle _____
  • 32. 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 6,4 circle 6,4,3

Notes de l'éditeur

  1. So far you have been looking at adding text output and text input in BASIC-256. Today we will start using the drawing ability of the software.
  2. Any graphics you want to appear in your program must be programmed using commands just like entering the “print” command. In BASIC-256 the graphics are drawn in the area below the Graphics Output section of the program.
  3. It helps to think of the graphics area as a grid where the graphics are drawn. Each line on the grid is one pixel when it is drawn on the screen.
  4. The grid has numbers across the top starting with 0 at the left side.
  5. The grid also has numbers on the left side starting with 0 in the top left corner.
  6. Each point on the grid is made up of two numbers. The first number shows how far from the left the point is drawn. The second number shows how far down the point is drawn. This example would draw the point over one pixel and down one pixel.
  7. This point is drawn over three pixels and down two pixels. This point would be named 3,2.
  8. This point is drawn over five pixels and down six pixels. This point would be named 5,6.
  9. What is the name of this point? If you are stuck, think how many pixels over and how many pixels down.
  10. This point is over eight pixels and down two pixels. The name of this point is 8,2.
  11. What is the name of this point? If you are stuck, think how many pixels over and how many pixels down.
  12. This point is over six pixels and down eight pixels. The name of this point is 6,8.
  13. What is the name of this point?
  14. The point is 8,4. Over eight pixels and down four pixels.
  15. In addition to points, the BASIC-256 program can draw lines on the screen. In order to draw a line you find the name of the point that is where the lines starts and the name of the point where the line ends. In this example the line starts at point 1,1 and ends at point 5,6.
  16. In order for the program the draw a line in the graphics output, the program needs a command. The command to draw a line is the word line followed by four numbers. The first set of numbers are the name of the starting point. The second set of numbers are the name of the ending point. These two sets of numbers are joined together with another comma. To draw this line on the screen you would type the command line one comma one comma five comma six.
  17. Lines can be connected together when they are drawn on the screen. Each line needs its own line command made up of four numbers. Where will this line be drawn on the screen? If you are stuck think about the starting point and the ending point of the line. The first two numbers are the starting point and the second two numbers are the ending point.
  18. This line would start at point 5,6 and end at point 9,6.
  19. What command would be used to draw the new line on the screen?
  20. The command would be line nine comma six comma seven comma two. The line starts at point 9,6 and ends at point 7,2. Both these points are combined with a comma in the line command.
  21. The BASIC-256 program can also use a rectangle command to draw a colored rectangle on the screen. In order to draw a rectangle find the point where the rectangle should start.
  22. The rectangle is drawn from this starting point. Two more numbers are needed to draw the rectangle on the screen.
  23. The next number is how far over the rectangle should be drawn from the starting point. This is the width of the rectangle.
  24. The last number is how far down the rectangle should be drawn from the starting point. This is the height.
  25. The rectangle command is made up of the starting point followed by a comma. The number of pixels over, comma and the number of pixels down.
  26. What command would be used to draw this rectangle on the screen. If you get stuck, think about the starting point, how far over and how far down.
  27. The command would be rect two comma three comma six comma four. The rectangle starts at point 2,3 and is drawn over six pixels and down four pixels.
  28. The last graphics shape in BASIC-256 is the circle. Just like the rectangle the first thing to do is figure out the point where the circle starts.
  29. The only other number needed is how far from the center to draw the circle. Count from the center of the circle to the edge. This number is the radius.
  30. What command would be used to draw this rectangle on the screen. If you get stuck, think about the starting point, and the radius.
  31. The command would be circle six comma four comma three. The circle starts at point 6,4 and is three pixels from the center.