SlideShare a Scribd company logo
1 of 11
Download to read offline
This offline lesson plan covers the basics of computer
graphics. After learning about how graphics work,
students will create their own Color by Pixel programs.
The lesson plan consists of four parts, each covering a
specific topic. The entire five-part Color by Pixel lesson
is designed to run approximately one hour.
Copies of the Color by Pixel template sheets
(included in the Resources section).
Colored pencils, crayons, markers, or other
supplies for coloring.
WHAT YOU’LL NEED
Computers and computer graphics go hand in
hand. In this lesson, we’ll learn how computers
draw images using pixels.
PART 1: Programming and Pixels 10 min
TOPIC
- What is a computer program?
- What is a pixel?
- How does a computer program use
pixels to display an image?
QUESTIONS
- Code: Code is the name for the
instructions you write to a computer in a
program.
- Computer: A person or device that makes
calculations, stores data, and executes
instructions according to a program.
- Computer program: A list of code
instructions a computer follows in order to
perform a task.
- Computing: Executing instructions,
calculating, or using a computer.
- Pixel: A single point or dot of color in a
larger image. Large images are made up of
thousands of small pixels.
VOCABULARY
Would you enjoy playing games on a computer
that didn’t have a screen with graphics? Probably
not. Computer graphics and animation have
become an important part of how we interact with
computers today.
Computer programs are like lists of instructions
that we give to a computer. Computers are not
very capable on their own -- they need good
instructions to tell them what to do and how to do
it. Programmers can create instructions for
computers by writing computer code that tells the
computer exactly what to do.
But how do programs draw pictures onto the
screen? Computers break each picture down into
tiny blocks of color, called pixels, that are
organized in a grid across the screen. Each pixel
contains one single color. By combining
thousands and thousands of these tiny pixels,
programs can draw complicated pictures onto the
screen.
DISCUSSION
A demonstration of how to use pixels to make a
simple image.
PART 2: How Do They Work? 15 min
TOPIC
- What format will we use to select and
color a pixel for this exercise?
- It’s important to not mix up rows and
columns. Which direction do rows run?
And which way are columns?
- What number do the rows and columns
start from?
QUESTIONS
- Row: Rows run horizontally (side to side)
- Column: Columns run vertically (up and
down)
VOCABULARY
The image below is a very simple example of
using pixels to draw a basic image. Each box in
the grid is a single pixel. In this case, some of the
pixels have been colored to make a smiley face.
We can label the rows and columns of the image
to make it easier to pick out specific pixels:
Now that we have row and column numbers, we
can select individual pixels. For example, the
smiley face’s right eye is located in column 3, row
1 (notice that we start counting at zero). We can
communicate this more quickly by writing all the
pixel coordinates in this format: (column, row).
We’ll write the color of the pixel rightly after the
column and row position. So to color the right
eye, we can write: (3, 1, green).
Using these coordinates, we can paint the
smiley face above with the following program:
1. (1, 1, green)
2. (3, 1, green)
3. (0, 3, green)
4. (4, 3, green)
5. (1, 4, green)
6. (2, 4, green)
7. (3, 4, green)
DISCUSSION
Page 2
Columns
0 1 2 3 4
0
1
2
3
4
Now that students have learned the basics of
how images are drawn with pixels, it’s time to
practice drawing some images.
The first activity has students practice drawing
out a simple message on the screen. The
second activity is slightly harder, but results in
a cool heart image.
1. YOUR FIRST PIXEL PROGRAM
CODE
1. (0, 0, yellow)
2. (2, 0, yellow)
3. (4, 0, yellow)
4. (0, 1, yellow)
5. (2, 1, yellow)
6. (4, 1, yellow)
7. (0, 2, yellow)
8. (1, 2, yellow)
9. (2, 2, yellow)
10. (4, 2, yellow)
11. (0, 3, yellow)
12. (2, 3, yellow)
13. (4, 3, yellow)
14. (0, 4, yellow)
15. (2, 4, yellow)
16. (4, 4, yellow)
PART 3: Activity - Color by Pixel 20 min
TOPIC
Give each student a “computer screen” grid
and instructions sheet. By following the
program next to the grids, students will be
“human computers” who will draw out images
onto the screen.
SETUP
Page 3
Solution
0 1 2 3 4
0
1
2
3
4
2. COMPUTER SCIENCE LOVE
CODE
SOLUTION
1. (3, 1, black)
2. (4, 1, black)
3. (8, 1, black)
4. (9, 1, black)
5. (2, 2, black)
6. (3, 2, red)
7. (4, 2, red)
8. (5, 2, black)
9. (7, 2, black)
10. (8, 2, red)
11. (9, 2, red)
12. (10, 2, black)
13. (1, 3, black)
14. (2, 3, red)
15. (3, 3, red)
16. (4, 3, red)
17. (5, 3, red)
18. (6, 3, black)
19. (7, 3, red)
20. (10, 3, red)
21. (11, 3, black)
22. (1, 4, black)
23. (2, 4, red)
24. (3, 4, red)
25. (4, 4, red)
26. (5, 4, red)
27. (6, 4, red)
28. (7, 4, red)
29. (8, 4, red)
30. (10, 4, red)
31. (11, 4, black)
32. (1, 5, black)
33. (2, 5, red)
34. (3, 5, red)
35. (4, 5, red)
36. (5, 5, red)
37. (6, 5, red)
38. (7, 5, red)
39. (8, 5, red)
40. (9, 5, red)
41. (10, 5, red)
42. (11, 5, black)
43. (2, 6, black)
44. (3, 6, red)
45. (4, 6, red)
46. (5, 6, red)
47. (6, 6, red)
48. (7, 6, red)
49. (8, 6, red)
50. (9, 6, red)
51. (10, 6, black)
52. (3, 7, black)
53. (4, 7, red)
54. (5, 7, red)
55. (6, 7, red)
56. (7, 7, red)
57. (8, 7, red)
58. (9, 7, black)
59. (4, 8, black)
60. (5, 8, red)
61. (6, 8, red)
62. (7, 8, red)
63. (8, 8, black)
64. (5, 9, black)
65. (6, 9, red)
66. (7, 9, black)
67. (6, 10, black)
Page 4
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Now students can write code to make their very
own pixel image!
PART 4: Create Your Own!
TOPIC
Give each student a copy of the blank “My Pixel
Image” page. Students can write their code in the
area provided. Note that it might be a good idea
to make a rough draft image first to help with
writing the code -- having extra copies of the My
Pixel Image handout would be beneficial.
To extend this activity, have each student pair up
with another student after they have finished
writing their code. Using Student A’s code instruc-
tions, Student B can be the human computer and
draw out the image. The students can then switch
roles and Student A can draw out Student B’s
program.
DISCUSSION
Page 5
20 min
Page 6
Computer graphics are all around us, from the phones in our pockets to the movies we watch. In
order to display images, computers follow basic lists of instructions called programs. Each image is
made up of individual pixels. Each pixel only displays one color, so computers combine thousands of
pixels in a grid in order to display complex images. Displaying an image is like giving the computer a
list of instructions of which pixels need to be colored in a certain color.
To continue learning, visit www.CodeHS.com
PART 5: Conclusion
TOPIC
Part 1
- What is a computer program?
- What is a pixel?
- How does a computer program use
pixels to display an image?
Part 2
- What format will we use to select and
color a pixel for this exercise?
- It’s important to not mix up rows and
columns. Which direction do rows run?
And which way are columns?
- What number do the rows and columns
start from?
DISCUSSION QUESTIONS
Part 1
- Code: Code is the name for the instructions you
write to a computer in a program.
- Computer: A person or device that makes
calculations, stores data, and executes
instructions according to a program.
- Computer Program: A list of code instructions a
computer follows in order to perform a task.
- Computing: Executing instructions, calculating,
or using a computer.
- Pixel: A single point or dot of color in a larger
image. Large images are made up of thousands
of small pixels.
Part 2
- Row: Rows run horizontally (side to side)
- Columns: Columns run vertically (up and down)
VOCABULARY
20 min
-Blank “code editor” and “computer screen” sheet for the Your First Pixel Program and Computer
Science Love exercises.
-Blank “My Pixel Image” page for the Create Your Own activity
Page 7
RESOURCES
YOUR FIRST PIXEL PROGRAM
Page 8
0 1 2 3 4
0
1
2
3
4
Program Instructions
1. (0, 0, yellow)
2. (2, 0, yellow)
3. (4, 0, yellow)
4. (0, 1, yellow)
5. (2, 1, yellow)
6. (4, 1, yellow)
7. (0, 2, yellow)
8. (1, 2, yellow)
9. (2, 2, yellow)
10. (4, 2, yellow)
11. (0, 3, yellow)
12. (2, 3, yellow)
13. (4, 3, yellow)
14. (0, 4, yellow)
15. (2, 4, yellow)
16. (4, 4, yellow)
COMPUTER SCIENCE LOVE
Page 9
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
PROGRAM INSTRUCTIONS
1. (3, 1, black)
2. (4, 1, black)
3. (8, 1, black)
4. (9, 1, black)
5. (2, 2, black)
6. (3, 2, red)
7. (4, 2, red)
8. (5, 2, black)
9. (7, 2, black)
10. (8, 2, red)
11. (9, 2, red)
12. (10, 2, black)
13. (1, 3, black)
14. (2, 3, red)
15. (3, 3, red)
16. (4, 3, red)
17. (5, 3, red)
18. (6, 3, black)
19. (7, 3, red)
20. (10, 3, red)
21. (11, 3, black)
22. (1, 4, black)
23. (2, 4, red)
24. (3, 4, red)
25. (4, 4, red)
26. (5, 4, red)
27. (6, 4, red)
28. (7, 4, red)
29. (8, 4, red)
30. (10, 4, red)
31. (11, 4, black)
32. (1, 5, black)
33. (2, 5, red)
34. (3, 5, red)
35. (4, 5, red)
36. (5, 5, red)
37. (6, 5, red)
38. (7, 5, red)
39. (8, 5, red)
40. (9, 5, red)
41. (10, 5, red)
42. (11, 5, black)
43. (2, 6, black)
44. (3, 6, red)
45. (4, 6, red)
46. (5, 6, red)
47. (6, 6, red)
48. (7, 6, red)
49. (8, 6, red)
50. (9, 6, red)
51. (10, 6, black)
52. (3, 7, black)
53. (4, 7, red)
54. (5, 7, red)
55. (6, 7, red)
56. (7, 7, red)
57. (8, 7, red)
58. (9, 7, black)
59. (4, 8, black)
60. (5, 8, red)
61. (6, 8, red)
62. (7, 8, red)
63. (8, 8, black)
64. (5, 9, black)
65. (6, 9, red)
66. (7, 9, black)
67. (6, 10, black)
MY PIXEL IMAGE
Page 10
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
PROGRAM INSTRUCTIONS

More Related Content

Similar to Coding - Pixel Art

Overview of graphics systems.ppt
Overview of graphics systems.pptOverview of graphics systems.ppt
Overview of graphics systems.pptMalleshBettadapura1
 
Digital Photo intruduction
Digital Photo intruductionDigital Photo intruduction
Digital Photo intruductionproffyorch
 
Q2-Digital Art Applications.pptx
Q2-Digital Art Applications.pptxQ2-Digital Art Applications.pptx
Q2-Digital Art Applications.pptxleovieortega2
 
DIGITAL IMAGE PROCESSING.docx
DIGITAL IMAGE  PROCESSING.docxDIGITAL IMAGE  PROCESSING.docx
DIGITAL IMAGE PROCESSING.docxSeduMadavan
 
16 OpenCV Functions to Start your Computer Vision journey.docx
16 OpenCV Functions to Start your Computer Vision journey.docx16 OpenCV Functions to Start your Computer Vision journey.docx
16 OpenCV Functions to Start your Computer Vision journey.docxssuser90e017
 
351111888-Commodore-64-Assembly-Language-Arcade-Programming-pdf.pdf
351111888-Commodore-64-Assembly-Language-Arcade-Programming-pdf.pdf351111888-Commodore-64-Assembly-Language-Arcade-Programming-pdf.pdf
351111888-Commodore-64-Assembly-Language-Arcade-Programming-pdf.pdfkalelboss
 
Report on digital graphics1 irene
Report on digital graphics1 ireneReport on digital graphics1 irene
Report on digital graphics1 irenehaverstockmedia
 
Introduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLABIntroduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLABRay Phan
 
plan601 e session 2 demo
plan601 e session 2 demoplan601 e session 2 demo
plan601 e session 2 demorkottam
 
Overview of graphics systems
Overview of  graphics systemsOverview of  graphics systems
Overview of graphics systemsJay Nagar
 
CG_Unit1_SShah.pptx
CG_Unit1_SShah.pptxCG_Unit1_SShah.pptx
CG_Unit1_SShah.pptxShweta Shah
 
FaceDetectionforColorImageBasedonMATLAB.pdf
FaceDetectionforColorImageBasedonMATLAB.pdfFaceDetectionforColorImageBasedonMATLAB.pdf
FaceDetectionforColorImageBasedonMATLAB.pdfAnita Pal
 
Model 1 multimedia graphics and animation introduction (1)
Model 1 multimedia graphics and animation introduction (1)Model 1 multimedia graphics and animation introduction (1)
Model 1 multimedia graphics and animation introduction (1)Rahul Borate
 
YCIS_Forensic PArt 1 Digital Image Processing.pptx
YCIS_Forensic PArt 1 Digital Image Processing.pptxYCIS_Forensic PArt 1 Digital Image Processing.pptx
YCIS_Forensic PArt 1 Digital Image Processing.pptxSharmilaMore5
 

Similar to Coding - Pixel Art (20)

Overview of graphics systems.ppt
Overview of graphics systems.pptOverview of graphics systems.ppt
Overview of graphics systems.ppt
 
ARTS-6-Q1-W2.pptx
ARTS-6-Q1-W2.pptxARTS-6-Q1-W2.pptx
ARTS-6-Q1-W2.pptx
 
Digital Photo intruduction
Digital Photo intruductionDigital Photo intruduction
Digital Photo intruduction
 
427lects
427lects427lects
427lects
 
Plan601E Session 2 Demo
Plan601E Session 2 DemoPlan601E Session 2 Demo
Plan601E Session 2 Demo
 
Q2-Digital Art Applications.pptx
Q2-Digital Art Applications.pptxQ2-Digital Art Applications.pptx
Q2-Digital Art Applications.pptx
 
DIGITAL IMAGE PROCESSING.docx
DIGITAL IMAGE  PROCESSING.docxDIGITAL IMAGE  PROCESSING.docx
DIGITAL IMAGE PROCESSING.docx
 
Computer graphics, bba 1
Computer graphics, bba 1Computer graphics, bba 1
Computer graphics, bba 1
 
Computer graphics, group 9, bba a
Computer graphics, group 9, bba aComputer graphics, group 9, bba a
Computer graphics, group 9, bba a
 
16 OpenCV Functions to Start your Computer Vision journey.docx
16 OpenCV Functions to Start your Computer Vision journey.docx16 OpenCV Functions to Start your Computer Vision journey.docx
16 OpenCV Functions to Start your Computer Vision journey.docx
 
351111888-Commodore-64-Assembly-Language-Arcade-Programming-pdf.pdf
351111888-Commodore-64-Assembly-Language-Arcade-Programming-pdf.pdf351111888-Commodore-64-Assembly-Language-Arcade-Programming-pdf.pdf
351111888-Commodore-64-Assembly-Language-Arcade-Programming-pdf.pdf
 
Report on digital graphics1 irene
Report on digital graphics1 ireneReport on digital graphics1 irene
Report on digital graphics1 irene
 
MAJOR PROJECT
MAJOR PROJECT MAJOR PROJECT
MAJOR PROJECT
 
Introduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLABIntroduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLAB
 
plan601 e session 2 demo
plan601 e session 2 demoplan601 e session 2 demo
plan601 e session 2 demo
 
Overview of graphics systems
Overview of  graphics systemsOverview of  graphics systems
Overview of graphics systems
 
CG_Unit1_SShah.pptx
CG_Unit1_SShah.pptxCG_Unit1_SShah.pptx
CG_Unit1_SShah.pptx
 
FaceDetectionforColorImageBasedonMATLAB.pdf
FaceDetectionforColorImageBasedonMATLAB.pdfFaceDetectionforColorImageBasedonMATLAB.pdf
FaceDetectionforColorImageBasedonMATLAB.pdf
 
Model 1 multimedia graphics and animation introduction (1)
Model 1 multimedia graphics and animation introduction (1)Model 1 multimedia graphics and animation introduction (1)
Model 1 multimedia graphics and animation introduction (1)
 
YCIS_Forensic PArt 1 Digital Image Processing.pptx
YCIS_Forensic PArt 1 Digital Image Processing.pptxYCIS_Forensic PArt 1 Digital Image Processing.pptx
YCIS_Forensic PArt 1 Digital Image Processing.pptx
 

More from isarevi

IES Escultor Juan de Villanueva Presentation.pptx
IES Escultor Juan de Villanueva Presentation.pptxIES Escultor Juan de Villanueva Presentation.pptx
IES Escultor Juan de Villanueva Presentation.pptxisarevi
 
Our Relatives' Biographies by 3rd ESO Bil. Students
Our Relatives' Biographies by 3rd ESO Bil. StudentsOur Relatives' Biographies by 3rd ESO Bil. Students
Our Relatives' Biographies by 3rd ESO Bil. Studentsisarevi
 
Digital Citizenship_Health & Wellbeing.pdf
Digital Citizenship_Health & Wellbeing.pdfDigital Citizenship_Health & Wellbeing.pdf
Digital Citizenship_Health & Wellbeing.pdfisarevi
 
SPECULATIONS - 4th 23-24.pdf
SPECULATIONS - 4th 23-24.pdfSPECULATIONS - 4th 23-24.pdf
SPECULATIONS - 4th 23-24.pdfisarevi
 
ACROSTICS 1st Bach A 23-24.pdf
ACROSTICS 1st Bach A 23-24.pdfACROSTICS 1st Bach A 23-24.pdf
ACROSTICS 1st Bach A 23-24.pdfisarevi
 
BOOK REVIEWS 3rd C_D 23-24.pdf
BOOK REVIEWS 3rd C_D 23-24.pdfBOOK REVIEWS 3rd C_D 23-24.pdf
BOOK REVIEWS 3rd C_D 23-24.pdfisarevi
 
Avatars 3rd ESO Bil. 23-24.pdf
Avatars 3rd ESO Bil. 23-24.pdfAvatars 3rd ESO Bil. 23-24.pdf
Avatars 3rd ESO Bil. 23-24.pdfisarevi
 
Music Survey 23-24 3rd C-D RESULTS.pptx
Music Survey 23-24 3rd C-D RESULTS.pptxMusic Survey 23-24 3rd C-D RESULTS.pptx
Music Survey 23-24 3rd C-D RESULTS.pptxisarevi
 
Music Survey 23-24 3rd A-B RESULTS.pptx
Music Survey 23-24 3rd A-B RESULTS.pptxMusic Survey 23-24 3rd A-B RESULTS.pptx
Music Survey 23-24 3rd A-B RESULTS.pptxisarevi
 
OUR STUDY APPS_23-24.pdf
OUR STUDY APPS_23-24.pdfOUR STUDY APPS_23-24.pdf
OUR STUDY APPS_23-24.pdfisarevi
 
Final_Task_Learning_Scenario_Isabel_Redondo.pdf
Final_Task_Learning_Scenario_Isabel_Redondo.pdfFinal_Task_Learning_Scenario_Isabel_Redondo.pdf
Final_Task_Learning_Scenario_Isabel_Redondo.pdfisarevi
 
Music Survey 22-23 - RESULTS.pptx
Music Survey 22-23 - RESULTS.pptxMusic Survey 22-23 - RESULTS.pptx
Music Survey 22-23 - RESULTS.pptxisarevi
 
España, Asturias, Pola, mi Insti y yo.pptx
España, Asturias, Pola, mi Insti y yo.pptxEspaña, Asturias, Pola, mi Insti y yo.pptx
España, Asturias, Pola, mi Insti y yo.pptxisarevi
 
Support to Ukraine 2nd A/B bil
Support to Ukraine 2nd A/B bilSupport to Ukraine 2nd A/B bil
Support to Ukraine 2nd A/B bilisarevi
 
Comparatives - superlatives - inferiority
Comparatives - superlatives - inferiorityComparatives - superlatives - inferiority
Comparatives - superlatives - inferiorityisarevi
 
Coming Soon - Learn about our Countries
Coming Soon - Learn about our CountriesComing Soon - Learn about our Countries
Coming Soon - Learn about our Countriesisarevi
 
Spanish Christmas Traditions
Spanish Christmas TraditionsSpanish Christmas Traditions
Spanish Christmas Traditionsisarevi
 
Gloves in the future
Gloves in the futureGloves in the future
Gloves in the futureisarevi
 
Holidays - Template to describe a photo
Holidays - Template to describe a photoHolidays - Template to describe a photo
Holidays - Template to describe a photoisarevi
 
Travel brochure-template - elementary
Travel brochure-template - elementaryTravel brochure-template - elementary
Travel brochure-template - elementaryisarevi
 

More from isarevi (20)

IES Escultor Juan de Villanueva Presentation.pptx
IES Escultor Juan de Villanueva Presentation.pptxIES Escultor Juan de Villanueva Presentation.pptx
IES Escultor Juan de Villanueva Presentation.pptx
 
Our Relatives' Biographies by 3rd ESO Bil. Students
Our Relatives' Biographies by 3rd ESO Bil. StudentsOur Relatives' Biographies by 3rd ESO Bil. Students
Our Relatives' Biographies by 3rd ESO Bil. Students
 
Digital Citizenship_Health & Wellbeing.pdf
Digital Citizenship_Health & Wellbeing.pdfDigital Citizenship_Health & Wellbeing.pdf
Digital Citizenship_Health & Wellbeing.pdf
 
SPECULATIONS - 4th 23-24.pdf
SPECULATIONS - 4th 23-24.pdfSPECULATIONS - 4th 23-24.pdf
SPECULATIONS - 4th 23-24.pdf
 
ACROSTICS 1st Bach A 23-24.pdf
ACROSTICS 1st Bach A 23-24.pdfACROSTICS 1st Bach A 23-24.pdf
ACROSTICS 1st Bach A 23-24.pdf
 
BOOK REVIEWS 3rd C_D 23-24.pdf
BOOK REVIEWS 3rd C_D 23-24.pdfBOOK REVIEWS 3rd C_D 23-24.pdf
BOOK REVIEWS 3rd C_D 23-24.pdf
 
Avatars 3rd ESO Bil. 23-24.pdf
Avatars 3rd ESO Bil. 23-24.pdfAvatars 3rd ESO Bil. 23-24.pdf
Avatars 3rd ESO Bil. 23-24.pdf
 
Music Survey 23-24 3rd C-D RESULTS.pptx
Music Survey 23-24 3rd C-D RESULTS.pptxMusic Survey 23-24 3rd C-D RESULTS.pptx
Music Survey 23-24 3rd C-D RESULTS.pptx
 
Music Survey 23-24 3rd A-B RESULTS.pptx
Music Survey 23-24 3rd A-B RESULTS.pptxMusic Survey 23-24 3rd A-B RESULTS.pptx
Music Survey 23-24 3rd A-B RESULTS.pptx
 
OUR STUDY APPS_23-24.pdf
OUR STUDY APPS_23-24.pdfOUR STUDY APPS_23-24.pdf
OUR STUDY APPS_23-24.pdf
 
Final_Task_Learning_Scenario_Isabel_Redondo.pdf
Final_Task_Learning_Scenario_Isabel_Redondo.pdfFinal_Task_Learning_Scenario_Isabel_Redondo.pdf
Final_Task_Learning_Scenario_Isabel_Redondo.pdf
 
Music Survey 22-23 - RESULTS.pptx
Music Survey 22-23 - RESULTS.pptxMusic Survey 22-23 - RESULTS.pptx
Music Survey 22-23 - RESULTS.pptx
 
España, Asturias, Pola, mi Insti y yo.pptx
España, Asturias, Pola, mi Insti y yo.pptxEspaña, Asturias, Pola, mi Insti y yo.pptx
España, Asturias, Pola, mi Insti y yo.pptx
 
Support to Ukraine 2nd A/B bil
Support to Ukraine 2nd A/B bilSupport to Ukraine 2nd A/B bil
Support to Ukraine 2nd A/B bil
 
Comparatives - superlatives - inferiority
Comparatives - superlatives - inferiorityComparatives - superlatives - inferiority
Comparatives - superlatives - inferiority
 
Coming Soon - Learn about our Countries
Coming Soon - Learn about our CountriesComing Soon - Learn about our Countries
Coming Soon - Learn about our Countries
 
Spanish Christmas Traditions
Spanish Christmas TraditionsSpanish Christmas Traditions
Spanish Christmas Traditions
 
Gloves in the future
Gloves in the futureGloves in the future
Gloves in the future
 
Holidays - Template to describe a photo
Holidays - Template to describe a photoHolidays - Template to describe a photo
Holidays - Template to describe a photo
 
Travel brochure-template - elementary
Travel brochure-template - elementaryTravel brochure-template - elementary
Travel brochure-template - elementary
 

Recently uploaded

EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 

Recently uploaded (20)

EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 

Coding - Pixel Art

  • 1. This offline lesson plan covers the basics of computer graphics. After learning about how graphics work, students will create their own Color by Pixel programs. The lesson plan consists of four parts, each covering a specific topic. The entire five-part Color by Pixel lesson is designed to run approximately one hour. Copies of the Color by Pixel template sheets (included in the Resources section). Colored pencils, crayons, markers, or other supplies for coloring. WHAT YOU’LL NEED
  • 2. Computers and computer graphics go hand in hand. In this lesson, we’ll learn how computers draw images using pixels. PART 1: Programming and Pixels 10 min TOPIC - What is a computer program? - What is a pixel? - How does a computer program use pixels to display an image? QUESTIONS - Code: Code is the name for the instructions you write to a computer in a program. - Computer: A person or device that makes calculations, stores data, and executes instructions according to a program. - Computer program: A list of code instructions a computer follows in order to perform a task. - Computing: Executing instructions, calculating, or using a computer. - Pixel: A single point or dot of color in a larger image. Large images are made up of thousands of small pixels. VOCABULARY Would you enjoy playing games on a computer that didn’t have a screen with graphics? Probably not. Computer graphics and animation have become an important part of how we interact with computers today. Computer programs are like lists of instructions that we give to a computer. Computers are not very capable on their own -- they need good instructions to tell them what to do and how to do it. Programmers can create instructions for computers by writing computer code that tells the computer exactly what to do. But how do programs draw pictures onto the screen? Computers break each picture down into tiny blocks of color, called pixels, that are organized in a grid across the screen. Each pixel contains one single color. By combining thousands and thousands of these tiny pixels, programs can draw complicated pictures onto the screen. DISCUSSION
  • 3. A demonstration of how to use pixels to make a simple image. PART 2: How Do They Work? 15 min TOPIC - What format will we use to select and color a pixel for this exercise? - It’s important to not mix up rows and columns. Which direction do rows run? And which way are columns? - What number do the rows and columns start from? QUESTIONS - Row: Rows run horizontally (side to side) - Column: Columns run vertically (up and down) VOCABULARY The image below is a very simple example of using pixels to draw a basic image. Each box in the grid is a single pixel. In this case, some of the pixels have been colored to make a smiley face. We can label the rows and columns of the image to make it easier to pick out specific pixels: Now that we have row and column numbers, we can select individual pixels. For example, the smiley face’s right eye is located in column 3, row 1 (notice that we start counting at zero). We can communicate this more quickly by writing all the pixel coordinates in this format: (column, row). We’ll write the color of the pixel rightly after the column and row position. So to color the right eye, we can write: (3, 1, green). Using these coordinates, we can paint the smiley face above with the following program: 1. (1, 1, green) 2. (3, 1, green) 3. (0, 3, green) 4. (4, 3, green) 5. (1, 4, green) 6. (2, 4, green) 7. (3, 4, green) DISCUSSION Page 2 Columns 0 1 2 3 4 0 1 2 3 4
  • 4. Now that students have learned the basics of how images are drawn with pixels, it’s time to practice drawing some images. The first activity has students practice drawing out a simple message on the screen. The second activity is slightly harder, but results in a cool heart image. 1. YOUR FIRST PIXEL PROGRAM CODE 1. (0, 0, yellow) 2. (2, 0, yellow) 3. (4, 0, yellow) 4. (0, 1, yellow) 5. (2, 1, yellow) 6. (4, 1, yellow) 7. (0, 2, yellow) 8. (1, 2, yellow) 9. (2, 2, yellow) 10. (4, 2, yellow) 11. (0, 3, yellow) 12. (2, 3, yellow) 13. (4, 3, yellow) 14. (0, 4, yellow) 15. (2, 4, yellow) 16. (4, 4, yellow) PART 3: Activity - Color by Pixel 20 min TOPIC Give each student a “computer screen” grid and instructions sheet. By following the program next to the grids, students will be “human computers” who will draw out images onto the screen. SETUP Page 3 Solution 0 1 2 3 4 0 1 2 3 4
  • 5. 2. COMPUTER SCIENCE LOVE CODE SOLUTION 1. (3, 1, black) 2. (4, 1, black) 3. (8, 1, black) 4. (9, 1, black) 5. (2, 2, black) 6. (3, 2, red) 7. (4, 2, red) 8. (5, 2, black) 9. (7, 2, black) 10. (8, 2, red) 11. (9, 2, red) 12. (10, 2, black) 13. (1, 3, black) 14. (2, 3, red) 15. (3, 3, red) 16. (4, 3, red) 17. (5, 3, red) 18. (6, 3, black) 19. (7, 3, red) 20. (10, 3, red) 21. (11, 3, black) 22. (1, 4, black) 23. (2, 4, red) 24. (3, 4, red) 25. (4, 4, red) 26. (5, 4, red) 27. (6, 4, red) 28. (7, 4, red) 29. (8, 4, red) 30. (10, 4, red) 31. (11, 4, black) 32. (1, 5, black) 33. (2, 5, red) 34. (3, 5, red) 35. (4, 5, red) 36. (5, 5, red) 37. (6, 5, red) 38. (7, 5, red) 39. (8, 5, red) 40. (9, 5, red) 41. (10, 5, red) 42. (11, 5, black) 43. (2, 6, black) 44. (3, 6, red) 45. (4, 6, red) 46. (5, 6, red) 47. (6, 6, red) 48. (7, 6, red) 49. (8, 6, red) 50. (9, 6, red) 51. (10, 6, black) 52. (3, 7, black) 53. (4, 7, red) 54. (5, 7, red) 55. (6, 7, red) 56. (7, 7, red) 57. (8, 7, red) 58. (9, 7, black) 59. (4, 8, black) 60. (5, 8, red) 61. (6, 8, red) 62. (7, 8, red) 63. (8, 8, black) 64. (5, 9, black) 65. (6, 9, red) 66. (7, 9, black) 67. (6, 10, black) Page 4 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
  • 6. Now students can write code to make their very own pixel image! PART 4: Create Your Own! TOPIC Give each student a copy of the blank “My Pixel Image” page. Students can write their code in the area provided. Note that it might be a good idea to make a rough draft image first to help with writing the code -- having extra copies of the My Pixel Image handout would be beneficial. To extend this activity, have each student pair up with another student after they have finished writing their code. Using Student A’s code instruc- tions, Student B can be the human computer and draw out the image. The students can then switch roles and Student A can draw out Student B’s program. DISCUSSION Page 5 20 min
  • 7. Page 6 Computer graphics are all around us, from the phones in our pockets to the movies we watch. In order to display images, computers follow basic lists of instructions called programs. Each image is made up of individual pixels. Each pixel only displays one color, so computers combine thousands of pixels in a grid in order to display complex images. Displaying an image is like giving the computer a list of instructions of which pixels need to be colored in a certain color. To continue learning, visit www.CodeHS.com PART 5: Conclusion TOPIC Part 1 - What is a computer program? - What is a pixel? - How does a computer program use pixels to display an image? Part 2 - What format will we use to select and color a pixel for this exercise? - It’s important to not mix up rows and columns. Which direction do rows run? And which way are columns? - What number do the rows and columns start from? DISCUSSION QUESTIONS Part 1 - Code: Code is the name for the instructions you write to a computer in a program. - Computer: A person or device that makes calculations, stores data, and executes instructions according to a program. - Computer Program: A list of code instructions a computer follows in order to perform a task. - Computing: Executing instructions, calculating, or using a computer. - Pixel: A single point or dot of color in a larger image. Large images are made up of thousands of small pixels. Part 2 - Row: Rows run horizontally (side to side) - Columns: Columns run vertically (up and down) VOCABULARY 20 min
  • 8. -Blank “code editor” and “computer screen” sheet for the Your First Pixel Program and Computer Science Love exercises. -Blank “My Pixel Image” page for the Create Your Own activity Page 7 RESOURCES
  • 9. YOUR FIRST PIXEL PROGRAM Page 8 0 1 2 3 4 0 1 2 3 4 Program Instructions 1. (0, 0, yellow) 2. (2, 0, yellow) 3. (4, 0, yellow) 4. (0, 1, yellow) 5. (2, 1, yellow) 6. (4, 1, yellow) 7. (0, 2, yellow) 8. (1, 2, yellow) 9. (2, 2, yellow) 10. (4, 2, yellow) 11. (0, 3, yellow) 12. (2, 3, yellow) 13. (4, 3, yellow) 14. (0, 4, yellow) 15. (2, 4, yellow) 16. (4, 4, yellow)
  • 10. COMPUTER SCIENCE LOVE Page 9 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 PROGRAM INSTRUCTIONS 1. (3, 1, black) 2. (4, 1, black) 3. (8, 1, black) 4. (9, 1, black) 5. (2, 2, black) 6. (3, 2, red) 7. (4, 2, red) 8. (5, 2, black) 9. (7, 2, black) 10. (8, 2, red) 11. (9, 2, red) 12. (10, 2, black) 13. (1, 3, black) 14. (2, 3, red) 15. (3, 3, red) 16. (4, 3, red) 17. (5, 3, red) 18. (6, 3, black) 19. (7, 3, red) 20. (10, 3, red) 21. (11, 3, black) 22. (1, 4, black) 23. (2, 4, red) 24. (3, 4, red) 25. (4, 4, red) 26. (5, 4, red) 27. (6, 4, red) 28. (7, 4, red) 29. (8, 4, red) 30. (10, 4, red) 31. (11, 4, black) 32. (1, 5, black) 33. (2, 5, red) 34. (3, 5, red) 35. (4, 5, red) 36. (5, 5, red) 37. (6, 5, red) 38. (7, 5, red) 39. (8, 5, red) 40. (9, 5, red) 41. (10, 5, red) 42. (11, 5, black) 43. (2, 6, black) 44. (3, 6, red) 45. (4, 6, red) 46. (5, 6, red) 47. (6, 6, red) 48. (7, 6, red) 49. (8, 6, red) 50. (9, 6, red) 51. (10, 6, black) 52. (3, 7, black) 53. (4, 7, red) 54. (5, 7, red) 55. (6, 7, red) 56. (7, 7, red) 57. (8, 7, red) 58. (9, 7, black) 59. (4, 8, black) 60. (5, 8, red) 61. (6, 8, red) 62. (7, 8, red) 63. (8, 8, black) 64. (5, 9, black) 65. (6, 9, red) 66. (7, 9, black) 67. (6, 10, black)
  • 11. MY PIXEL IMAGE Page 10 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 PROGRAM INSTRUCTIONS