{"id":22263,"date":"2025-06-29T12:57:05","date_gmt":"2025-06-29T16:57:05","guid":{"rendered":"https:\/\/umainenewmedia.net\/nmd100\/?p=22263"},"modified":"2025-06-29T12:57:05","modified_gmt":"2025-06-29T16:57:05","slug":"task-7","status":"publish","type":"post","link":"https:\/\/umainenewmedia.net\/nmd100\/task-7\/","title":{"rendered":"Task 7: Code an Avatar with AI"},"content":{"rendered":"<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignright\" src=\"https:\/\/i.imgflip.com\/83hu8h.jpg\" width=\"647\" height=\"415\" \/><\/p>\n<h3>Introduction<\/h3>\n<p>Communicating with AI is one of the most frequent challenges you will run into during your journey of getting the tool to be helpful. In this exercise you&#8217;ll practice providing small incremental change prompts to reach a result that you want, rather than a single large complex prompt.<\/p>\n<h3>Process<\/h3>\n<ol>\n<li>Think of what sort of avatar or icon you want to use to represent you that you feel can be made with simple shapes. (Do not use any of the Pacman examples shown in class.)<\/li>\n<li>Identify individual parts of the avatar and think about how you would describe their properties (shape, location, color) in words. Pick a part as a starting point.<\/li>\n<li>Using our class&#8217; <a href=\"https:\/\/www.terratoast.net\/\">custom interface<\/a>, ask ChatGPT to code a P5.js image based on this starting point. Paste the output into the <a href=\"https:\/\/editor.p5js.org\/\">online p5.js editor<\/a> and click Play to test the code ChatGPT wrote.<br \/>\nAn example starting prompt:<\/p>\n<div style=\"background-color: azure; font-family: courier; font-size: .9em; color: darkslategray; padding: 0 .5em; border-radius: .5em; border: aquamarine solid 1px;\">\n<p>\ud83d\udccd Acting as an expert programmer familiar with the P5js JavaScript framework, write the code for a mouse face that could be used as an avatar icon.<span style=\"font-weight: 400;\">Assume I will paste this into a P5js editor, so don&#8217;t give me any HTML, just the script contents.<\/span><\/p>\n<\/div>\n<\/li>\n<li>Refine the starting prompt if necessary until you feel comfortable with it as a starting point.<\/li>\n<li>Start requesting small incremental changes to the image, refining the prompt if it&#8217;s interpreted poorly or if the result is not what you expected.<\/li>\n<li>Add a post with a title like Task 7: Mary Gonzalez and add the category \u201cTask 7\u201d.<\/li>\n<li>To the Visual tab add:\n<ol>\n<li>The starting prompt and the image it created (as a screenshot).<\/li>\n<li>Two intermediate steps providing the image before your prompt, the prompt itself, and the image after your prompt, for a total of 4 images and 2 prompts.<\/li>\n<li>The final image and the final prompt.<\/li>\n<\/ol>\n<\/li>\n<li><strong>Complete the <a href=\"https:\/\/forms.gle\/PAcB6sen3i29QcEc6\">reflection survey form<\/a>\u00a0to get credit for this task.<\/strong><\/li>\n<\/ol>\n<h5>\ud83c\udf97 Did you remember to add the Task 7 category and click Publish?<\/h5>\n<h3>FAQ<\/h3>\n<details style=\"border: silver dotted 1px; margin: 0 0 1em 0; padding: 0 1em 0 1em; border-radius: 1em;\">\n<summary style=\"font-size: 1.25rem; color: #0c598e; font-weight: 300; line-height: 1.7;\">What&#8217;s the grading rubric?<\/summary>\n<ul>\n<li aria-level=\"1\">Your initial prompt: from 0 to +1 points<\/li>\n<li aria-level=\"1\">The initial P5.js image that resulted: from 0 to +1 points<\/li>\n<li aria-level=\"1\">Two sets of the following steps: from 0 to +6 points\n<ul>\n<li>Image before incremental change prompt<\/li>\n<li>Incremental change prompt<\/li>\n<li>Image after incremental change prompt<\/li>\n<\/ul>\n<\/li>\n<li aria-level=\"1\">Your final prompt: from 0 to +1 points<\/li>\n<li aria-level=\"1\">Your final P5.js image: from 0 to +1 points<\/li>\n<li aria-level=\"1\">You were thoughtful or imaginative: from 0 to +2 points (extra credit!)<\/li>\n<li aria-level=\"1\">You were late: from 0 to -3 points, with one point off per week.<\/li>\n<\/ul>\n<p>Your grade is the total of all points times 10, for a possible maximum of 100%.<\/p>\n<\/details>\n<details style=\"border: silver dotted 1px; margin: 0 0 1em 0; padding: 0 1em 0 1em; border-radius: 1em;\">\n<summary style=\"font-size: 1.25rem; color: #0c598e; font-weight: 300; line-height: 1.7;\">Can you remind me how to get chatbots to write code?<\/summary>\n<p>Here are the slide decks for How To Prompt AI: <a href=\"https:\/\/docs.google.com\/presentation\/d\/1X-DvhtV93lU_cc-tuKq8_WKTN63R0Ogm7K8fUcp1lt4\/edit#slide=id.g2914feffaca_0_52\">Code part 1<\/a> and <a href=\"https:\/\/docs.google.com\/presentation\/d\/1TdhKCAlvy9jcEwakKgYarXaUGx02AxZI003MUQh79aY\/edit#slide=id.g2914feffaca_0_52\">Code part 2<\/a>. The second part gives an example of incremental prompting, which will be useful for this Task.<\/p>\n<\/details>\n<details style=\"border: silver dotted 1px; margin: 0 0 1em 0; padding: 0 1em 0 1em; border-radius: 1em;\">\n<summary style=\"font-size: 1.25rem; color: #0c598e; font-weight: 300; line-height: 1.7;\">Can I see a cheatsheet for the P5js coding language?<\/summary>\n<p>Here&#8217;s a <a href=\"https:\/\/nmdprojects.net\/teaching_resources\/p5js_draw_sprite_exercise.html\">summary on how to create shapes with P5js<\/a>.<\/p>\n<\/details>\n<details style=\"border: silver dotted 1px; margin: 0 0 1em 0; padding: 0 1em 0 1em; border-radius: 1em;\">\n<summary style=\"font-size: 1.25rem; color: #0c598e; font-weight: 300; line-height: 1.7;\">Can I see a model answer?<\/summary>\n<p>As one example for reference, here\u2019s a <a href=\"https:\/\/umainenewmedia.net\/nmd100\/task-8-exemplary-submission\/\">sample A+ assignment<\/a>. This student had to interact with the chatbot 50 times, but the incremental prompting turned what initially looked like an ant into a believable icon for a dragon.<\/p>\n<p>Your submission may look quite different and still get a good grade if you follow the rubric.<\/p>\n<\/details>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Communicating with AI is one of the most frequent challenges you will run into during your journey of getting the tool to be helpful. In this exercise you&#8217;ll practice providing small incremental change prompts to reach a result that you want, rather than a single large complex prompt. Process Think of what sort of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54,34,32],"tags":[35],"class_list":["post-22263","post","type-post","status-publish","format-standard","hentry","category-54","category-task-7","category-tasks","tag-tasks"],"_links":{"self":[{"href":"https:\/\/umainenewmedia.net\/nmd100\/wp-json\/wp\/v2\/posts\/22263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/umainenewmedia.net\/nmd100\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/umainenewmedia.net\/nmd100\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/umainenewmedia.net\/nmd100\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/umainenewmedia.net\/nmd100\/wp-json\/wp\/v2\/comments?post=22263"}],"version-history":[{"count":11,"href":"https:\/\/umainenewmedia.net\/nmd100\/wp-json\/wp\/v2\/posts\/22263\/revisions"}],"predecessor-version":[{"id":27402,"href":"https:\/\/umainenewmedia.net\/nmd100\/wp-json\/wp\/v2\/posts\/22263\/revisions\/27402"}],"wp:attachment":[{"href":"https:\/\/umainenewmedia.net\/nmd100\/wp-json\/wp\/v2\/media?parent=22263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/umainenewmedia.net\/nmd100\/wp-json\/wp\/v2\/categories?post=22263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/umainenewmedia.net\/nmd100\/wp-json\/wp\/v2\/tags?post=22263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}