Skip to content

Commit 91d604b

Browse files
authored
Update 2024-12-18-intro-to-p5-grid.md
1 parent 0dd5ba5 commit 91d604b

1 file changed

Lines changed: 25 additions & 17 deletions

File tree

_posts/resources/2024-12-18-intro-to-p5-grid.md

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ excerpt: "Resources for introducing the p5.js environment and the x-y coordinate
2020
### Standards
2121

2222
- Math Standard: CCSS.MATH.CONTENT.6.NS.C.6: Understand a rational number as a point on the number line; locate and position points on a coordinate plane.
23-
- Media Arts Standard: 6.MA:Cr1 Generate and conceptualize artistic ideas and work
23+
- Media Arts Standard:
24+
* 6.MA:Cr1 Generate and conceptualize artistic ideas and work
25+
* 6.MA:Cr2 Organize and develop artistic ideas and work.
2426
- Computer Science Standards:
2527
* 6-8.AP.10 Use flowcharts and/or pseudocode to design and illustrate algorithms that solve complex problems. (P4.1, P4.4)
2628
* 6-8.AP.11 Create clearly named variables that store data, and perform operations on their contents. (P5.1, P5.2)
2729
* 6-8.AP.19 Document programs in order to make them easier to use, read, test, and debug. (P7.2)
30+
* 6.MA:Cr2 Organize and develop artistic ideas and work.
2831

2932
### Learning Intention
3033

@@ -40,20 +43,22 @@ Students will understand the x, y coordinates on a p5.js grid and create pattern
4043

4144
- Laptops or Chromebooks with internet access
4245
- Projector and screen for demonstrations
43-
- ***Note***: You may want to create a Google Classroom to share the resources below as “Materials” for students and, also print the grid, guide, and vocab for students.
46+
- ***Note***: You may want to create a Google Classroom or page on a Learning Management System (LMS) to share the resources below as “Materials” for students and, also print the grid, guide, and vocab for students.
4447
* [P5.js web editor](https://editor.p5js.org/)
4548
* [Grid Resource (Google Docs)](https://docs.google.com/document/d/1C1D7WO_I7R9AgqfV3X967jRJo07qO0U5GdJ0U6VlT0c/edit?usp=sharing) with labeled x and y axes (or [png image](https://drive.google.com/file/d/1_oQwoiHC_3Nlew-lp9mAVtKtDgDu4Rgt/view?usp=drive_link))
4649
* [Intro to P5 Vocabulary Reference Guide](https://docs.google.com/document/d/1dTPg13E6M4Vi9Xudwa49bYxZEf1qRs50oZjlDAtJARo/edit?usp=sharing)
4750
* Online Color Resources:
4851
+ [RGB Color Picker](https://www.google.com/search?q=rgb+color+picker&oq=rgb+color+picker&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQRRhB0gEINzU5M2owajGoAgCwAgA&sourceid=chrome&ie=UTF-8&safe=active&ssui=on)
4952
+ [RBG Colors](https://www.w3schools.com/css/css_colors_rgb.asp)
5053
+ [Color Names](https://www.w3schools.com/colors/colors_names.asp)
51-
* Lesson 1 p5.js code: [Intro to p5.js, Coordinates and Coding Shapes Code](https://editor.p5js.org/msandoval/sketches/L3GWiHYe4)
54+
* [Intro to p5.js, Coordinates and Coding Shapes Code](https://editor.p5js.org/msandoval/sketches/L3GWiHYe4)
55+
56+
![Image of the Grid resource]({{ "assets/images/resources/mariana-sandoval/Mariana Grid Image.png" | relative_url }})
5257

5358
### Intro (15 minutes)
5459

5560
- Begin with a brief discussion: “Where have you seen grids in real life?” (e.g., graph paper, maps, games, math). Share how we will be using a grid in the p5.js coding platform to create with code.
56-
- Project [Google Doc Grid Resource](https://docs.google.com/document/d/1C1D7WO_I7R9AgqfV3X967jRJo07qO0U5GdJ0U6VlT0c/edit?usp=sharing) grid and go over the following:
61+
- Project the [Google Doc Grid Resource](https://docs.google.com/document/d/1C1D7WO_I7R9AgqfV3X967jRJo07qO0U5GdJ0U6VlT0c/edit?usp=sharing) and go over the following:
5762
* The horizontal axis is the x-axis, and the vertical axis is the y-axis
5863
* The origin, or point where the x-axis and y-axis meet (0, 0)
5964
- Ask students to share similarities and differences to the coordinate plane in math (TPS)
@@ -63,17 +68,17 @@ Students will understand the x, y coordinates on a p5.js grid and create pattern
6368
### Guided Practice & Demonstration (25 minutes)
6469

6570
- Open the p5.js editor. Briefly go over the platform and how to login and save files.
66-
- Explain a function and state how it uses x, y coordinates to position shapes.
71+
- Explain a function (see the intro to p5.js [Vocablary Reference Guide](https://docs.google.com/document/d/1dTPg13E6M4Vi9Xudwa49bYxZEf1qRs50oZjlDAtJARo/edit?usp=sharing)) and state how it uses x, y coordinates to position shapes.
6772
- ***Vocabulary:*** Go over the [Intro to p5.js Vocabulary Reference Guide](https://docs.google.com/document/d/1dTPg13E6M4Vi9Xudwa49bYxZEf1qRs50oZjlDAtJARo/edit?usp=sharing). Mention to students that we will not focus on all vocabulary for example, lines, triangles, or stroke but they are free to try these out on their own.
68-
- In the p5.js editor and demonstrate the following:
69-
* [Intro to p5.js, Coordinates and Coding Shapes Code](https://editor.p5js.org/msandoval/sketches/L3GWiHYe4)
73+
- In the p5.js editor, demonstrate the following while students follow and code along:
74+
* How to code lines by recreating the lines in the [Intro to p5.js, Coordinates and Coding Shapes Code](https://editor.p5js.org/msandoval/sketches/L3GWiHYe4)
7075
* Scaffold and chunk out these pieces by demoing how to:
7176
* Code the Canvas
7277
* Use the Function Draw
7378
* Code the Background color
7479
* Code a fill color for the shapes
7580
* Code the shape coordinates to create each shape
76-
* Typing comments to explain code
81+
* Type comments to explain code
7782

7883
### Reflection (5 minutes)
7984

@@ -94,11 +99,12 @@ Discuss: “How might knowing coordinates help in creating digital art or games?
9499
### Standards
95100

96101
- Math Standard: CCSS.MATH.CONTENT.6.NS.C.6: Understand a rational number as a point on the number line; locate and position points on a coordinate plane.
97-
- Media Arts Standard: 6.MA:Cr1 Generate and conceptualize artistic ideas and work
102+
- Media Arts Standard:
103+
* 6.MA:Cr1 Generate and conceptualize artistic ideas and work.
104+
* 6-8.AP.19 Document programs in order to make them easier to use, read, test, and debug. (P7.2)
98105
- Computer Science Standards:
99106
* 6-8.AP.10 Use flowcharts and/or pseudocode to design and illustrate algorithms that solve complex problems. (P4.1, P4.4)
100107
* 6-8.AP.11 Create clearly named variables that store data, and perform operations on their contents. (P5.1, P5.2)
101-
* 6-8.AP.19 Document programs in order to make them easier to use, read, test, and debug. (P7.2)
102108

103109
### Learning Intention
104110

@@ -113,39 +119,41 @@ Students will understand the x, y coordinates on a p5.js grid and create pattern
113119

114120
- Laptops or Chromebooks with internet access
115121
- Projector and screen for demonstrations
116-
- ***Note***: You may want to create a Google Classroom to share the resources below as “Materials” for students and, also print the grid, guide, and vocab for students.
122+
- ***Note***: You may want to create a Google Classroom or a page in a Learning Managment System (LMS) to share the resources below as “Materials” for students and, also print the grid, guide, and vocab for students.
117123
* [p5.js Editor](https://editor.p5js.org/)
118124
* [Grid Resource (Google Docs)](https://docs.google.com/document/d/1C1D7WO_I7R9AgqfV3X967jRJo07qO0U5GdJ0U6VlT0c/edit?usp=sharing) with labeled x and y axes (or [png image](https://drive.google.com/file/d/1_oQwoiHC_3Nlew-lp9mAVtKtDgDu4Rgt/view?usp=drive_link))
119125
* [Intro to p5.js Vocabulary Reference Guide](https://docs.google.com/document/d/1dTPg13E6M4Vi9Xudwa49bYxZEf1qRs50oZjlDAtJARo/edit?usp=sharing)
120126
* Online Color Resources:
121127
+ [RGB Color Picker](https://www.google.com/search?q=rgb+color+picker&oq=rgb+color+picker&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQRRhB0gEINzU5M2owajGoAgCwAgA&sourceid=chrome&ie=UTF-8&safe=active&ssui=on)
122128
+ [RBG Colors](https://www.w3schools.com/css/css_colors_rgb.asp)
123129
+ [Color Names](https://www.w3schools.com/colors/colors_names.asp)
124-
- Previous Lesson 1 p5.js code: [Intro to p5.js, Coordinates and Coding Shapes Code](https://editor.p5js.org/msandoval/sketches/L3GWiHYe4)
130+
* [Intro to p5.js, Coordinates and Coding Shapes Code](https://editor.p5js.org/msandoval/sketches/L3GWiHYe4)
125131
- [Lesson Exemplar 1](https://editor.p5js.org/msandoval/sketches/ZMkSLnu6N)
126132
- [Lesson Exemplar 2](https://editor.p5js.org/msandoval/sketches/7k8nQBPHD)
127133

134+
![Sample sketch created with p5.js]({{ "assets/images/resources/mariana-sandoval/Mariana Exemplar 2 Final.png" | relative_url }})
135+
128136
### Intro (10 minutes)
129137

130138
- ***Prior Knowledge Review:*** Check to make sure students know how to use the [Grid Resource (Google Docs)](https://docs.google.com/document/d/1C1D7WO_I7R9AgqfV3X967jRJo07qO0U5GdJ0U6VlT0c/edit?usp=sharing) by having students show you how points are located using coordinates (e.g., (100, 200) means moving 100 units right and 200 units down).
131139

132140
- ***Remind students:***
133141
* Reference the [Intro to p5.js Vocabulary Reference Guide](https://docs.google.com/document/d/1dTPg13E6M4Vi9Xudwa49bYxZEf1qRs50oZjlDAtJARo/edit?usp=sharing)
134142
+ The students will only be required to focus on circles, rectangles, ellipses, fills for the shapes, and adding comments, but they are free to try anything else from the vocab guide.
135-
* Go over the color resources (you may want to add them as materials in a Google Classroom for students to reference easily).
143+
* Go over the color resources (you may want to add them as materials in an LMS for students to reference easily).
136144
+ [RGB Color Picker](https://www.google.com/search?q=rgb+color+picker&oq=rgb+color+picker&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQRRhB0gEINzU5M2owajGoAgCwAgA&sourceid=chrome&ie=UTF-8&safe=active&ssui=on)
137145
+ [RBG Colors](https://www.w3schools.com/css/css_colors_rgb.asp)
138146
+ [Color Names](https://www.w3schools.com/colors/colors_names.asp)
139-
- Have students view Exemplars to help them generate ideas and learn the code:
147+
- Have students view exemplars to help them generate ideas and learn the code:
140148
* [Lesson Exemplar 1](https://editor.p5js.org/msandoval/sketches/ZMkSLnu6N)
141149
* [Lesson Exemplar 2](https://editor.p5js.org/msandoval/sketches/7k8nQBPHD)
142150

143151
### Student Activity (30 minutes)
144152

145153
- Students will create their own digital artwork using p5.js:
146154
* The students will create a pattern that repeats at least once using shapes by plotting the shapes in different locations and add comments to each line of code.
147-
* Have students start with the lesson 1 code: [Intro to p5.js, Coordinates and Coding Shapes Code](https://editor.p5js.org/msandoval/sketches/L3GWiHYe4) (Share in Google Classroom)
148-
* Encourage experimentation with coordinates and colors using fill
155+
* Have students start with the lesson 1 code: [Intro to p5.js, Coordinates and Coding Shapes Code](https://editor.p5js.org/msandoval/sketches/L3GWiHYe4) (Share in an LMS)
156+
* Encourage experimentation with coordinates and colors using fill.
149157
- Walk around the room to check for understanding and provide support as needed during independent practice.
150158

151159
### Reflection (5 minutes)
@@ -155,7 +163,7 @@ Students will understand the x, y coordinates on a p5.js grid and create pattern
155163

156164
### Assessment
157165

158-
- Students will share their designs. Have students share their link to their design in Google Classroom.
166+
- Students will share their designs. Have students share their link to their design in an LMS.
159167
- Check students’ ability to correctly place shapes using coordinates.
160168
- Review completed projects for understanding of x, y concepts and correct use of p5.js functions and patterns created.
161169
- Code will be reviewed for correct syntax and use of vocabulary and comments.

0 commit comments

Comments
 (0)