---
title: "Building A Game With p5 - Part 1: Drawing"
description: Learn how to create a game with p5 with Christopher Cotton, creator of Mr. Kitty Codes. This week we’ll be sharing the process in a 3 part blog series - the first of which focuses on drawing with p5. Check back tomorrow for part 2 - Animation!
image: https://learn.nashvillesoftwareschool.com/hubfs/NSS_BlogGraphic-p5-blog1-christopercotton.png
---

[![Nashville Software School Logo](https://learn.nashvillesoftwareschool.com/hubfs/Jan2018/Images/NSS-logo-horizontal-small.jpg)](http://nashvillesoftwareschool.com/)

- [Programs](http://nashvillesoftwareschool.com/programs) 
    - [Software Development Jumpstart](http://nashvillesoftwareschool.com/programs/software-development-jumpstart)
    - [Analytics Jumpstart](http://nashvillesoftwareschool.com/programs/analytics-jumpstart)
    - [Data Engineering Jumpstart](https://nashvillesoftwareschool.com/programs/data-engineering-jumpstart)
    - [Full-Time Web Developer Bootcamp](https://nashvillesoftwareschool.com/programs/web-developer-full-time/)
    - [Part-Time Web Developer Bootcamp](https://nashvillesoftwareschool.com/programs/web-developer-part-time/)
    - [Full-Time Data Analytics Bootcamp](http://nashvillesoftwareschool.com/programs/data-analytics-full-time)
    - [Part-Time Data Analytics Bootcamp](http://nashvillesoftwareschool.com/programs/data-analytics-part-time)
    - [Date Engineering Bootcamp](https://nashvillesoftwareschool.com/programs/data-engineering)
    - [Statistics For Data Science](http://nashvillesoftwareschool.com/programs/statistics-for-data-science)
    - [Data Science Bootcamp](http://nashvillesoftwareschool.com/programs/data-science)
    - [Professional Development](http://nashvillesoftwareschool.com/programs/professional-development)
- [Community](http://nashvillesoftwareschool.com/community) 
    - [Shop NSS](https://shopnss.creator-spring.com/)
    - [Our Team](http://nashvillesoftwareschool.com/community/instructors/)
    - [Alumni](http://nashvillesoftwareschool.com/community/alumni/)
    - [Mentors](http://nashvillesoftwareschool.com/community/mentors/)
    - [Employers](http://nashvillesoftwareschool.com/community/employers/)
    - [Veterans' Information](http://nashvillesoftwareschool.com/community/veterans-info/)
    - [Podcast](http://nashvillesoftwareschool.com/community/podcast/)
    - [Join Our Team](https://learn.nashvillesoftwareschool.com/join-our-team)
- [Support NSS](https://support.nashvillesoftwareschool.com) 
    - [Donate](https://support.nashvillesoftwareschool.com/ways-to-give)
    - [Corporate Giving](https://support.nashvillesoftwareschool.com/building-a-better-community-through-corporate-giving)
    - [Become A Volunteer](https://support.nashvillesoftwareschool.com/become-a-volunteer)
    - [Community Impact Report](https://support.nashvillesoftwareschool.com/community-impact-report-2025)
- [Calendar](http://nashvillesoftwareschool.com/calendar) 
    - [Upcoming Events](http://nashvillesoftwareschool.com/calendar/events)
    - [Upcoming Programs](http://nashvillesoftwareschool.com/calendar/upcoming-programs/)
- [Blog](https://learn.nashvillesoftwareschool.com/blog)

# Blog

# Building A Game With p5 - Part 1: Drawing

Jan 31, 2023

 •

[Mandy Arola](https://learn.nashvillesoftwareschool.com/blog/author/mandy-arola)

Christopher Cotton recently joined our Web Development and Software Engineering students to show them how to create a game with p5. This workshop is based on a class he’s developed called Mr. Kitty Codes with video tutorials and a book coming soon. You can watch the video tutorials on the [Mr. Kitty Codes YouTube channel](https://www.youtube.com/@mr.kittycodes) and get notified when the book comes out at[MrKittyCodes.com](https://mrkittycodes.com/). Thanks to Christopher for sharing his knowledge with our students and for allowing us to share it here on our blog.

This series assumes you have some basic JavaScript knowledge.

#### What is p5?

 According to [p5js.org](https://p5js.org/), p5.js is a “JavaScript library for creative coding, with a focus on making coding accessible and inclusive for artists, designers, educators and beginners.” It uses the metaphor of sketch and provides a full set of drawing functions - pretty useful!  

The beginning of understanding p5 starts with a trip back to math class. But don’t freak out – it’s not too complicated.

Remember the X-Axis and Y-Axis?

![x-y-axis](https://learn.nashvillesoftwareschool.com/hs-fs/hubfs/x-y-axis.png?width=400&height=366&name=x-y-axis.png)

Instead of the axis being in the center (shown above), it’s going to start at the top left corner of your screen (shown below)

![x-y-axis-programming](https://learn.nashvillesoftwareschool.com/hs-fs/hubfs/x-y-axis-programming.png?width=400&height=395&name=x-y-axis-programming.png)

We’re going to learn to draw by using coordinates to fill in the pixels. If you remember plotting x and y coordinates in math class, you probably remember plotting a point. But when drawing on the computer, you’re actually filling in sections or pixels on the axis.

Learn better through video? You can also watch this in [video form](https://youtu.be/FObrn9lbG5c).

#### Using Functions To Draw

Before we can draw, we need an editor. Fortunately, there is a free one at [editor.p5js.org](http://editor.p5js.org/). Go ahead and open that up in a new window so you can work on it side by side with this blog.

P5 always starts with the following functions.

`function setup () {   createCanvas(400, 400); }`

The next function you need is 

`function draw() {   background(220); }`

When you open your p5 editor window, it should already have the code above ready to go.

![P5-template](https://learn.nashvillesoftwareschool.com/hs-fs/hubfs/P5-template.png?width=695&height=379&name=P5-template.png)

To get started, push the play button and select “Auto-refresh” so that you can see your drawings as you go along. You should now see a gray square. This is covering your canvas size of 400 x 400 pixels which is identified in the setup function. We’ll do our drawing in the draw function where you currently see “background” listed.

> *Coding Newbie tip:* As you add functions, make sure you keep them within the curly brackets `{ }` after `function draw()`. If they are outside of the curly brackets you will get an error message or the code won’t run as expected.

#### Let’s make our first mark, a point.

`point (x, y);`

I used `point(100,200);`.

![P5-point](https://learn.nashvillesoftwareschool.com/hs-fs/hubfs/P5-point.png?width=700&height=375&name=P5-point.png)

Did you just have to clean your screen to see where that point ended up? Me too! Points are not ideal as they can be too small to see, but it’s helpful to understand how they work as we learn more functions.

Ok, here’s one you’ll be able to see.

`line (x1, y1, x2, y2);`

x1 and y1 represent the starting point of your line and x2 and y2 represent the end point of your line.

Try drawing a couple of lines, like `line(0,0,300,300);` or `line(0,150,200,200);`, or pick a coordinate of your choosing.

![P5-line](https://learn.nashvillesoftwareschool.com/hs-fs/hubfs/P5-line.png?width=700&height=385&name=P5-line.png)

#### Let’s try some shapes next.

`rect (x, y, width, height);`

x and y is your starting point, top left corner.

`ellipse (x, y, width, height);`

For an ellipse, x and y is the center of your ellipse.

I used `rect(0,0,100,100);` and `ellipse(0,0,100,100)` or choose some coordinates of your own.

![P5-rectangle-ellipse](https://learn.nashvillesoftwareschool.com/hs-fs/hubfs/P5-rectangle-ellipse.png?width=700&height=379&name=P5-rectangle-ellipse.png)

#### Wait! What’s happening here?

Why is the rectangle white? And what is that quarter of a circle? p5 is building your drawing one line (or layer) at a time. In the example above, after drawing the lines, it draws the rectangle and then the ellipse on top of the lines since they are in the same area (based on the coordinates we input). The rectangle and ellipse are also solid shapes, which is why they appear white. (Don’t worry, we can change the color later.) Why did the ellipse take a “bite” out of the rectangle? As mentioned above, the ellipse function starts in the center of the circle, whereas the rectangle function starts in the upper left corner.

There are other shapes you can create like a triangle or polygon and you can find those in the Reference section of your editor in the Help menu.

#### Are you ready for some color?

First, let’s learn a bit about what the numbers for color mean. (Learn better through video tutorials? Watch the [video about colors here](https://youtu.be/1ZmPzxkLvVo).) The numbers for colors go between 0 and 255 and it’s how much of that color you want in there. Color is determined by mixing red, green, and blue (or RGB) light. So `background(255, 0, 0);` will give you red. `background(255, 255, 0);` will give you yellow. But, wait? Don’t blue and green make yellow? 

Mixing color on screen is not like mixing paint. Remember, we’re mixing light. If you were to go up to a large screen display at a football game, for instance, you would see the reds, greens, and blues that are making up all the additional colors. If you mix all colors together, `background(255, 255, 255);`, you will actually get white. When your color is using three of the same values for RGB, like 255 for white or 220 for gray in the example we’ve been using above, you can abbreviate it to a single number:`background(255);`

Go ahead and play with the background color in the editor a bit.

So far we’ve been using `background(red, green, blue);` to fill the background or canvas, but we can also fill objects, like our rectangle or ellipse.

`fill(red, green, blue);` - fill and object, such as a rectangle or an ellipse

> *Pro tip:* List your color first and then your drawing.

![P5-color](https://learn.nashvillesoftwareschool.com/hs-fs/hubfs/P5-color.png?width=700&height=377&name=P5-color.png)

What to color your line? Use `stroke(red, green, blue);`.

You can also widen your line or the line around the object with `strokeWeight(50);` - just change the 50 to the size you want. 

![P5-stroke](https://learn.nashvillesoftwareschool.com/hs-fs/hubfs/P5-stroke.png?width=700&height=375&name=P5-stroke.png)

"I added `stroke` and `strokeWeight` above the rectangle function, so why did all my lines just turn white and get wider," you ask? The code loops around so if you set a color for an object in the middle of your code, it will become the color for everything else until you change it.

![P5-stroke-color](https://learn.nashvillesoftwareschool.com/hs-fs/hubfs/P5-stroke-color.png?width=700&height=375&name=P5-stroke-color.png)

You’ll notice, by adding another stroke color (in line 9 above), it’s turned that line dark gray, but since there is a stroke color of white before the next object, a rectangle, all the other lines remain white.

To find the colors you want, check out this color picker from [w3schools.com](https://www.w3schools.com/colors/colors_picker.asp) or find your favorite color picker online.

Play around with the color and drawing functions a bit.

Ready to animate? [Jump to our next post](https://learn.nashvillesoftwareschool.com/blog/2023/02/01/building-a-game-with-p5-part-2-animation) to get started! 

Topics: [Learning](https://learn.nashvillesoftwareschool.com/blog/tag/learning), [Web Development](https://learn.nashvillesoftwareschool.com/blog/tag/web-development)

[![Share on Facebook](https://static.hubspot.com/final/img/common/icons/social/facebook-24x24.png)](http://www.facebook.com/share.php?u=https%3A%2F%2Flearn.nashvillesoftwareschool.com%2Fblog%2F2023%2F01%2F31%2Fbuilding-a-game-with-p5-part-1-drawing%3Futm_medium%3Dsocial%26utm_source%3Dfacebook) [![Share on LinkedIn](https://static.hubspot.com/final/img/common/icons/social/linkedin-24x24.png)](http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Flearn.nashvillesoftwareschool.com%2Fblog%2F2023%2F01%2F31%2Fbuilding-a-game-with-p5-part-1-drawing%3Futm_medium%3Dsocial%26utm_source%3Dlinkedin) [![Share on Twitter](https://static.hubspot.com/final/img/common/icons/social/twitter-24x24.png)](https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Flearn.nashvillesoftwareschool.com%2Fblog%2F2023%2F01%2F31%2Fbuilding-a-game-with-p5-part-1-drawing%3Futm_medium%3Dsocial%26utm_source%3Dtwitter&url=https%3A%2F%2Flearn.nashvillesoftwareschool.com%2Fblog%2F2023%2F01%2F31%2Fbuilding-a-game-with-p5-part-1-drawing%3Futm_medium%3Dsocial%26utm_source%3Dtwitter&source=tweetbutton&text=Building%20A%20Game%20With%20p5%20-%20Part%201%3A%20Drawing) [![Share on Email](https://static.hubspot.com/final/img/common/icons/social/email-24x24.png)](mailto:?subject=Check%20out%20https%3A%2F%2Flearn.nashvillesoftwareschool.com%2Fblog%2F2023%2F01%2F31%2Fbuilding-a-game-with-p5-part-1-drawing%3Futm_medium%3Dsocial%26utm_source%3Demail%20&body=Check%20out%20https%3A%2F%2Flearn.nashvillesoftwareschool.com%2Fblog%2F2023%2F01%2F31%2Fbuilding-a-game-with-p5-part-1-drawing%3Futm_medium%3Dsocial%26utm_source%3Demail)

### Upcoming Programs

Explore our upcoming programs to begin your journey towards a career in tech! Classes begin year-round.

[![EXPLORE](https://no-cache.hubspot.com/cta/default/4020755/e0f6232d-25e4-456d-a386-a0cf09a776dd.png)](https://cta-redirect.hubspot.com/cta/redirect/4020755/e0f6232d-25e4-456d-a386-a0cf09a776dd)

### Want to know more?

### Support NSS

[![Donate Now](https://no-cache.hubspot.com/cta/default/4020755/6faecbd3-f6a1-4a5b-9256-fa436de1e5ef.png)](https://cta-redirect.hubspot.com/cta/redirect/4020755/6faecbd3-f6a1-4a5b-9256-fa436de1e5ef)

### Post by Topic

- [Student Stories (369)](https://learn.nashvillesoftwareschool.com/blog/tag/student-stories)
- [Web Development (279)](https://learn.nashvillesoftwareschool.com/blog/tag/web-development)
- [Hiring? (233)](https://learn.nashvillesoftwareschool.com/blog/tag/hiring)
- [Analytics + Data Science (210)](https://learn.nashvillesoftwareschool.com/blog/tag/analytics-data-science)
- [Community (126)](https://learn.nashvillesoftwareschool.com/blog/tag/community)
- [News (115)](https://learn.nashvillesoftwareschool.com/blog/tag/news)
- [Learning (111)](https://learn.nashvillesoftwareschool.com/blog/tag/learning)
- [Alumni (78)](https://learn.nashvillesoftwareschool.com/blog/tag/alumni)
- [Software Engineering (61)](https://learn.nashvillesoftwareschool.com/blog/tag/software-engineering)
- [Technology Insights (39)](https://learn.nashvillesoftwareschool.com/blog/tag/technology-insights)
- [10 Years | 2000 Journeys (27)](https://learn.nashvillesoftwareschool.com/blog/tag/10-years-2000-journeys)
- [Get Involved (24)](https://learn.nashvillesoftwareschool.com/blog/tag/get-involved)
- [Meetups & Community Events (22)](https://learn.nashvillesoftwareschool.com/blog/tag/meetups-community-events)
- [UI/UX (22)](https://learn.nashvillesoftwareschool.com/blog/tag/ui-ux)
- [Data Engineering (17)](https://learn.nashvillesoftwareschool.com/blog/tag/data-engineering)
- [Mind The Gap (5)](https://learn.nashvillesoftwareschool.com/blog/tag/mind-the-gap)

All

### Blog Archives

- [September 2026 (3)](https://learn.nashvillesoftwareschool.com/blog/archive/2026/09)
- [August 2026 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2026/08)
- [July 2026 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2026/07)
- [June 2026 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2026/06)
- [May 2026 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2026/05)
- [April 2026 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2026/04)
- [March 2026 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2026/03)
- [February 2026 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2026/02)
- [January 2026 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2026/01)
- [December 2025 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2025/12)
- [November 2025 (3)](https://learn.nashvillesoftwareschool.com/blog/archive/2025/11)
- [October 2025 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2025/10)
- [September 2025 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2025/09)
- [August 2025 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2025/08)
- [July 2025 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2025/07)
- [June 2025 (3)](https://learn.nashvillesoftwareschool.com/blog/archive/2025/06)
- [May 2025 (8)](https://learn.nashvillesoftwareschool.com/blog/archive/2025/05)
- [April 2025 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2025/04)
- [March 2025 (7)](https://learn.nashvillesoftwareschool.com/blog/archive/2025/03)
- [February 2025 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2025/02)
- [January 2025 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2025/01)
- [December 2024 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2024/12)
- [November 2024 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2024/11)
- [October 2024 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2024/10)
- [September 2024 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2024/09)
- [August 2024 (3)](https://learn.nashvillesoftwareschool.com/blog/archive/2024/08)
- [July 2024 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2024/07)
- [June 2024 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2024/06)
- [May 2024 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2024/05)
- [April 2024 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2024/04)
- [March 2024 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2024/03)
- [February 2024 (6)](https://learn.nashvillesoftwareschool.com/blog/archive/2024/02)
- [January 2024 (3)](https://learn.nashvillesoftwareschool.com/blog/archive/2024/01)
- [December 2023 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2023/12)
- [November 2023 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2023/11)
- [October 2023 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2023/10)
- [September 2023 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2023/09)
- [August 2023 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2023/08)
- [July 2023 (3)](https://learn.nashvillesoftwareschool.com/blog/archive/2023/07)
- [June 2023 (3)](https://learn.nashvillesoftwareschool.com/blog/archive/2023/06)
- [May 2023 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2023/05)
- [April 2023 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2023/04)
- [March 2023 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2023/03)
- [February 2023 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2023/02)
- [January 2023 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2023/01)
- [December 2022 (3)](https://learn.nashvillesoftwareschool.com/blog/archive/2022/12)
- [November 2022 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2022/11)
- [October 2022 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2022/10)
- [September 2022 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2022/09)
- [August 2022 (10)](https://learn.nashvillesoftwareschool.com/blog/archive/2022/08)
- [July 2022 (10)](https://learn.nashvillesoftwareschool.com/blog/archive/2022/07)
- [June 2022 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2022/06)
- [May 2022 (6)](https://learn.nashvillesoftwareschool.com/blog/archive/2022/05)
- [April 2022 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2022/04)
- [March 2022 (12)](https://learn.nashvillesoftwareschool.com/blog/archive/2022/03)
- [February 2022 (12)](https://learn.nashvillesoftwareschool.com/blog/archive/2022/02)
- [January 2022 (8)](https://learn.nashvillesoftwareschool.com/blog/archive/2022/01)
- [December 2021 (7)](https://learn.nashvillesoftwareschool.com/blog/archive/2021/12)
- [November 2021 (8)](https://learn.nashvillesoftwareschool.com/blog/archive/2021/11)
- [October 2021 (6)](https://learn.nashvillesoftwareschool.com/blog/archive/2021/10)
- [September 2021 (15)](https://learn.nashvillesoftwareschool.com/blog/archive/2021/09)
- [August 2021 (19)](https://learn.nashvillesoftwareschool.com/blog/archive/2021/08)
- [July 2021 (12)](https://learn.nashvillesoftwareschool.com/blog/archive/2021/07)
- [June 2021 (16)](https://learn.nashvillesoftwareschool.com/blog/archive/2021/06)
- [May 2021 (9)](https://learn.nashvillesoftwareschool.com/blog/archive/2021/05)
- [April 2021 (9)](https://learn.nashvillesoftwareschool.com/blog/archive/2021/04)
- [March 2021 (10)](https://learn.nashvillesoftwareschool.com/blog/archive/2021/03)
- [February 2021 (17)](https://learn.nashvillesoftwareschool.com/blog/archive/2021/02)
- [January 2021 (10)](https://learn.nashvillesoftwareschool.com/blog/archive/2021/01)
- [December 2020 (13)](https://learn.nashvillesoftwareschool.com/blog/archive/2020/12)
- [November 2020 (7)](https://learn.nashvillesoftwareschool.com/blog/archive/2020/11)
- [October 2020 (11)](https://learn.nashvillesoftwareschool.com/blog/archive/2020/10)
- [September 2020 (13)](https://learn.nashvillesoftwareschool.com/blog/archive/2020/09)
- [August 2020 (9)](https://learn.nashvillesoftwareschool.com/blog/archive/2020/08)
- [July 2020 (10)](https://learn.nashvillesoftwareschool.com/blog/archive/2020/07)
- [June 2020 (12)](https://learn.nashvillesoftwareschool.com/blog/archive/2020/06)
- [May 2020 (7)](https://learn.nashvillesoftwareschool.com/blog/archive/2020/05)
- [April 2020 (12)](https://learn.nashvillesoftwareschool.com/blog/archive/2020/04)
- [March 2020 (11)](https://learn.nashvillesoftwareschool.com/blog/archive/2020/03)
- [February 2020 (8)](https://learn.nashvillesoftwareschool.com/blog/archive/2020/02)
- [January 2020 (7)](https://learn.nashvillesoftwareschool.com/blog/archive/2020/01)
- [December 2019 (6)](https://learn.nashvillesoftwareschool.com/blog/archive/2019/12)
- [November 2019 (3)](https://learn.nashvillesoftwareschool.com/blog/archive/2019/11)
- [October 2019 (6)](https://learn.nashvillesoftwareschool.com/blog/archive/2019/10)
- [September 2019 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2019/09)
- [August 2019 (10)](https://learn.nashvillesoftwareschool.com/blog/archive/2019/08)
- [July 2019 (7)](https://learn.nashvillesoftwareschool.com/blog/archive/2019/07)
- [June 2019 (8)](https://learn.nashvillesoftwareschool.com/blog/archive/2019/06)
- [May 2019 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2019/05)
- [April 2019 (8)](https://learn.nashvillesoftwareschool.com/blog/archive/2019/04)
- [March 2019 (8)](https://learn.nashvillesoftwareschool.com/blog/archive/2019/03)
- [February 2019 (6)](https://learn.nashvillesoftwareschool.com/blog/archive/2019/02)
- [January 2019 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2019/01)
- [December 2018 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2018/12)
- [November 2018 (7)](https://learn.nashvillesoftwareschool.com/blog/archive/2018/11)
- [October 2018 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2018/10)
- [September 2018 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2018/09)
- [August 2018 (3)](https://learn.nashvillesoftwareschool.com/blog/archive/2018/08)
- [July 2018 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2018/07)
- [June 2018 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2018/06)
- [May 2018 (7)](https://learn.nashvillesoftwareschool.com/blog/archive/2018/05)
- [April 2018 (9)](https://learn.nashvillesoftwareschool.com/blog/archive/2018/04)
- [March 2018 (6)](https://learn.nashvillesoftwareschool.com/blog/archive/2018/03)
- [February 2018 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2018/02)
- [January 2018 (7)](https://learn.nashvillesoftwareschool.com/blog/archive/2018/01)
- [December 2017 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2017/12)
- [November 2017 (9)](https://learn.nashvillesoftwareschool.com/blog/archive/2017/11)
- [October 2017 (11)](https://learn.nashvillesoftwareschool.com/blog/archive/2017/10)
- [September 2017 (9)](https://learn.nashvillesoftwareschool.com/blog/archive/2017/09)
- [August 2017 (12)](https://learn.nashvillesoftwareschool.com/blog/archive/2017/08)
- [July 2017 (8)](https://learn.nashvillesoftwareschool.com/blog/archive/2017/07)
- [June 2017 (9)](https://learn.nashvillesoftwareschool.com/blog/archive/2017/06)
- [May 2017 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2017/05)
- [April 2017 (8)](https://learn.nashvillesoftwareschool.com/blog/archive/2017/04)
- [March 2017 (8)](https://learn.nashvillesoftwareschool.com/blog/archive/2017/03)
- [February 2017 (7)](https://learn.nashvillesoftwareschool.com/blog/archive/2017/02)
- [January 2017 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2017/01)
- [December 2016 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2016/12)
- [September 2016 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2016/09)
- [August 2016 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2016/08)
- [July 2016 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2016/07)
- [June 2016 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2016/06)
- [May 2016 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2016/05)
- [April 2016 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2016/04)
- [March 2016 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2016/03)
- [February 2016 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2016/02)
- [January 2016 (5)](https://learn.nashvillesoftwareschool.com/blog/archive/2016/01)
- [December 2015 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2015/12)
- [June 2015 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2015/06)
- [January 2015 (4)](https://learn.nashvillesoftwareschool.com/blog/archive/2015/01)
- [December 2014 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2014/12)
- [February 2014 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2014/02)
- [January 2014 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2014/01)
- [October 2013 (3)](https://learn.nashvillesoftwareschool.com/blog/archive/2013/10)
- [June 2013 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2013/06)
- [May 2013 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2013/05)
- [April 2013 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2013/04)
- [November 2012 (3)](https://learn.nashvillesoftwareschool.com/blog/archive/2012/11)
- [October 2012 (2)](https://learn.nashvillesoftwareschool.com/blog/archive/2012/10)
- [July 2012 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2012/07)
- [June 2012 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2012/06)
- [May 2012 (3)](https://learn.nashvillesoftwareschool.com/blog/archive/2012/05)
- [January 2012 (1)](https://learn.nashvillesoftwareschool.com/blog/archive/2012/01)

All

### Recent Posts

Nashville Software School is authorized by the [Tennessee Higher Education Commission](https://www.tn.gov/thec/). This authorization must be renewed each year and is based on an evaluation by minimum standards concerning quality of education, ethical business practices, health and safety, and fiscal responsibility.

- [NSS](http://nashvillesoftwareschool.com/)
- [About](http://nashvillesoftwareschool.com/about)
- [Press](http://nashvillesoftwareschool.com/press)
- [Contact](http://nashvillesoftwareschool.com/contact)
- [Virtual Tour](https://learn.nashvillesoftwareschool.com/virtual-tour)
- [FAQ](http://nashvillesoftwareschool.com/faq)
- [Blog](https://learn.nashvillesoftwareschool.com/blog)
- [Policies & Regulations](http://nashvillesoftwareschool.com/policies-and-regulations)

- [Programs](http://nashvillesoftwareschool.com/programs)
- [Software Development Jumpstart](http://nashvillesoftwareschool.com/programs/software-development-jumpstart)
- [Analytics Jumpstart](http://nashvillesoftwareschool.com/programs/analytics-jumpstart)
- [Data Engineering Jumpstart](https://nashvillesoftwareschool.com/programs/data-engineering-jumpstart)
- [Full-Time Web Developer Bootcamp](http://nashvillesoftwareschool.com/programs/full-time-bootcamps)
- [Part-Time Web Developer Bootcamp](http://nashvillesoftwareschool.com/programs/part-time)
- [Full-Time Data Analytics Bootcamp](http://nashvillesoftwareschool.com/programs/data-analytics-full-time)
- [Part-Time Data Analytics Bootcamp](http://nashvillesoftwareschool.com/programs/data-analytics-part-time)
- [Data Engineering Bootcamp](https://nashvillesoftwareschool.com/programs/data-engineering)
- [Statistics For Data Science](http://nashvillesoftwareschool.com/programs/statistics-for-data-science)
- [Data Science Bootcamp](http://nashvillesoftwareschool.com/programs/data-science)
- [Professional Development](http://nashvillesoftwareschool.com/programs/professional-development)

- [Community](http://nashvillesoftwareschool.com/community)
- [Donate](https://support.nashvillesoftwareschool.com)
- [Shop NSS](https://shopnss.creator-spring.com/)
- [Our Team](http://nashvillesoftwareschool.com/community/instructors/)
- [Alumni](http://nashvillesoftwareschool.com/community/alumni/)
- [Mentors](http://nashvillesoftwareschool.com/community/mentors/)
- [Employers](http://nashvillesoftwareschool.com/community/employers/)
- [Veterans' Information](http://nashvillesoftwareschool.com/community/veterans-info/)
- [Podcast](http://nashvillesoftwareschool.com/community/podcast/)
- [Join Our Team](https://learn.nashvillesoftwareschool.com/join-our-team)

- [Support NSS](https://support.nashvillesoftwareschool.com)
- [Donate](https://support.nashvillesoftwareschool.com/ways-to-give)
- [Corporate Giving](https://support.nashvillesoftwareschool.com/building-a-better-community-through-corporate-giving)
- [Become a Volunteer](https://support.nashvillesoftwareschool.com/become-a-volunteer)
- [Community Impact Report](https://support.nashvillesoftwareschool.com/community-impact-report-2025)
- [Upcoming Events](http://nashvillesoftwareschool.com/calendar)

 

[![Leaders-in-Diversity-2023](https://learn.nashvillesoftwareschool.com/hs-fs/hubfs/Leaders-in-Diversity-2023.png?width=120&height=60&name=Leaders-in-Diversity-2023.png)](https://bizj.us/1qj9h1)[![Best In Business 2020 Winner](https://learn.nashvillesoftwareschool.com/hs-fs/hubfs/BIBA-2020-logo-Winner.jpg?width=120&name=BIBA-2020-logo-Winner.jpg)](https://learn.nashvillesoftwareschool.com/blog/2020/03/10/nss-awarded-best-in-business)![Nashville Scene - Ditch Your Crappy Job 2016](https://learn.nashvillesoftwareschool.com/hs-fs/hubfs/Nashville-Scene-Award.jpg?width=120&name=Nashville-Scene-Award.jpg)

 

[![NACC Proud Member](https://learn.nashvillesoftwareschool.com/hs-fs/hubfs/NACCProudMember.png?width=120&name=NACCProudMember.png)](https://www.nashvillechamber.com/)

[![NTC Member](https://learn.nashvillesoftwareschool.com/hs-fs/hubfs/ntc-member.png?width=250&name=ntc-member.png)](https://technologycouncil.com/)

 

 

<https://www.linkedin.com/school/nashville-software-school/> <https://www.facebook.com/nashvillesoftwareschool.com> <https://www.instagram.com/nashvillesoftwareschool> <https://www.youtube.com/channel/UCCKj04Fy5V4zAjWSIqdqScw> <https://www.x.com/nashsoftware> <https://soundcloud.com/nashville-software-school/sets/stories-from-the-hackery-1?utm_source=clipboard&utm_medium=text&utm_campaign=social_sharing>

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Mandy Arola",
    "url" : "https://learn.nashvillesoftwareschool.com/blog/author/mandy-arola"
  },
  "dateModified" : "2023-02-01T19:21:58.792Z",
  "datePublished" : "2023-01-31T14:45:00.000Z",
  "headline" : "Building A Game With p5 - Part 1: Drawing",
  "image" : [ "https://learn.nashvillesoftwareschool.com/hubfs/NSS_BlogGraphic-p5-blog1-christopercotton.png" ],
  "mainEntityOfPage" : {
    "@id" : "https://learn.nashvillesoftwareschool.com/blog/2023/01/31/building-a-game-with-p5-part-1-drawing",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://learn.nashvillesoftwareschool.com/hubfs/NSS-logo-horizontal-large.jpg"
    },
    "name" : "Nashville Software School"
  }
}
```