SlideShare a Scribd company logo
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

Digital Photo intruduction
Digital Photo intruductionDigital Photo intruduction
Digital Photo intruduction
proffyorch
 
Q2-Digital Art Applications.pptx
Q2-Digital Art Applications.pptxQ2-Digital Art Applications.pptx
Q2-Digital Art Applications.pptx
leovieortega2
 
DIGITAL IMAGE PROCESSING.docx
DIGITAL IMAGE  PROCESSING.docxDIGITAL IMAGE  PROCESSING.docx
DIGITAL IMAGE PROCESSING.docx
SeduMadavan
 
Computer graphics, bba 1
Computer graphics, bba 1Computer graphics, bba 1
Computer graphics, bba 1
university of education,Lahore
 
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
ssuser90e017
 
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
kalelboss
 
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 MATLAB
Ray 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 systems
Jay Nagar
 
CG_Unit1_SShah.pptx
CG_Unit1_SShah.pptxCG_Unit1_SShah.pptx
CG_Unit1_SShah.pptx
Shweta Shah
 
FaceDetectionforColorImageBasedonMATLAB.pdf
FaceDetectionforColorImageBasedonMATLAB.pdfFaceDetectionforColorImageBasedonMATLAB.pdf
FaceDetectionforColorImageBasedonMATLAB.pdf
Anita 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.pptx
SharmilaMore5
 
Coding Unplugged_Focus on problem solvin
Coding Unplugged_Focus on problem solvinCoding Unplugged_Focus on problem solvin
Coding Unplugged_Focus on problem solvin
EnkelejdaMica1
 
Plan601 e session 4 demo
Plan601 e session 4 demoPlan601 e session 4 demo
Plan601 e session 4 demorkottam
 

Similar to Coding - Pixel Art (20)

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
 
Coding Unplugged_Focus on problem solvin
Coding Unplugged_Focus on problem solvinCoding Unplugged_Focus on problem solvin
Coding Unplugged_Focus on problem solvin
 
Plan601 e session 4 demo
Plan601 e session 4 demoPlan601 e session 4 demo
Plan601 e session 4 demo
 

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.pptx
isarevi
 
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
isarevi
 
Digital Citizenship_Health & Wellbeing.pdf
Digital Citizenship_Health & Wellbeing.pdfDigital Citizenship_Health & Wellbeing.pdf
Digital Citizenship_Health & Wellbeing.pdf
isarevi
 
SPECULATIONS - 4th 23-24.pdf
SPECULATIONS - 4th 23-24.pdfSPECULATIONS - 4th 23-24.pdf
SPECULATIONS - 4th 23-24.pdf
isarevi
 
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
isarevi
 
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
isarevi
 
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
isarevi
 
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
isarevi
 
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
isarevi
 
OUR STUDY APPS_23-24.pdf
OUR STUDY APPS_23-24.pdfOUR STUDY APPS_23-24.pdf
OUR STUDY APPS_23-24.pdf
isarevi
 
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
isarevi
 
Music Survey 22-23 - RESULTS.pptx
Music Survey 22-23 - RESULTS.pptxMusic Survey 22-23 - RESULTS.pptx
Music Survey 22-23 - RESULTS.pptx
isarevi
 
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
isarevi
 
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
isarevi
 
Comparatives - superlatives - inferiority
Comparatives - superlatives - inferiorityComparatives - superlatives - inferiority
Comparatives - superlatives - inferiority
isarevi
 
Coming Soon - Learn about our Countries
Coming Soon - Learn about our CountriesComing Soon - Learn about our Countries
Coming Soon - Learn about our Countries
isarevi
 
Spanish Christmas Traditions
Spanish Christmas TraditionsSpanish Christmas Traditions
Spanish Christmas Traditions
isarevi
 
Gloves in the future
Gloves in the futureGloves in the future
Gloves in the future
isarevi
 
Holidays - Template to describe a photo
Holidays - Template to describe a photoHolidays - Template to describe a photo
Holidays - Template to describe a photo
isarevi
 
Travel brochure-template - elementary
Travel brochure-template - elementaryTravel brochure-template - elementary
Travel brochure-template - elementary
isarevi
 

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

Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 

Recently uploaded (20)

Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 

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