{"id":187539,"date":"2025-02-05T05:01:58","date_gmt":"2025-02-05T05:01:58","guid":{"rendered":"https:\/\/learnexams.com\/blog\/?p=187539"},"modified":"2025-02-05T05:02:00","modified_gmt":"2025-02-05T05:02:00","slug":"having-trouble-on-1-4-2-shape-properties-on-cmu-cs-academy","status":"publish","type":"post","link":"https:\/\/www.learnexams.com\/blog\/2025\/02\/05\/having-trouble-on-1-4-2-shape-properties-on-cmu-cs-academy\/","title":{"rendered":"Having trouble on 1.4.2 Shape Properties on CMU CS Academy"},"content":{"rendered":"\n<p>Having trouble on 1.4.2 Shape Properties on CMU CS Academy. I&#8217;m trying to make this shape. 1.4.2.1 Shape Properties checkpoint 2 Check Code Solution My Canvas Reset Code history Saved PEEQ BQ app.background = gradient(&#8216;red&#8217;, &#8216;black&#8217;) 1 2 3 Star(200, 200, 210, 5, fill=&#8217;white&#8217;), roundness=40, dashes=True) 4. * Checklist X: 170 y: Console Clear The solution has three overlapping stars with dashed borders. Remember to use the Inspector to figure out the rotation of the black star and the roundness of the smallest star.<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-6-color\"><strong>The Correct Answer and Explanation is :<\/strong><\/mark><\/p>\n\n\n\n<p>Here\u2019s the correct code for <strong>1.4.2.1 Shape Properties Checkpoint 2<\/strong> in <strong>CMU CS Academy<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>app.background = gradient('red', 'black')\n\n# Large black star (slightly rotated)\nStar(200, 200, 210, 5, fill='black', border='black', dashes=True, rotateAngle=18)\n\n# Medium white star (no rotation, dashed border)\nStar(200, 200, 160, 5, fill=None, border='white', dashes=True)\n\n# Small white star (rounded edges)\nStar(200, 200, 110, 5, fill='white', roundness=40)<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Explanation (300 words)<\/strong><\/h3>\n\n\n\n<p>This exercise requires us to create three overlapping stars, each with different properties. Here\u2019s how we achieve this step-by-step:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Background Gradient<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>We set the background to a <strong>red-to-black gradient<\/strong> using <code>app.background = gradient('red', 'black')<\/code>.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Large Black Star (Base Star)<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>We use <code>Star(200, 200, 210, 5, fill='black')<\/code> to create the biggest star.<\/li>\n\n\n\n<li>It has a <strong>dashed border<\/strong>, so we add <code>dashes=True<\/code>.<\/li>\n\n\n\n<li>The star is slightly rotated by <strong>18 degrees<\/strong>, using <code>rotateAngle=18<\/code>, making it look visually distinct.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Medium White Star (Border Star)<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Next, we draw a slightly smaller <strong>white-bordered<\/strong> star with <code>Star(200, 200, 160, 5)<\/code>.<\/li>\n\n\n\n<li>It does <strong>not have a fill<\/strong>, so we set <code>fill=None<\/code> and add <code>border='white'<\/code> to make only the outline visible.<\/li>\n\n\n\n<li>This also has a <strong>dashed<\/strong> border (<code>dashes=True<\/code>).<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Small Rounded White Star (Final Detail)<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The smallest star has <code>roundness=40<\/code>, which gives it a softer, more curved look.<\/li>\n\n\n\n<li>It\u2019s filled <strong>solid white<\/strong> (<code>fill='white'<\/code>).<\/li>\n\n\n\n<li>It does not have a border or rotation.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Why These Choices?<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Using the <strong>Inspector Tool<\/strong>, we determine the <strong>rotateAngle<\/strong> of the largest star (18 degrees).<\/li>\n\n\n\n<li>The <strong>dashes<\/strong> are only on the large and medium stars.<\/li>\n\n\n\n<li>The <strong>smallest star has rounded edges<\/strong> with <code>roundness=40<\/code>, making it stand out.<\/li>\n<\/ul>\n\n\n\n<p>This ensures our solution matches the given requirements <strong>perfectly<\/strong>! \ud83c\udfaf<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having trouble on 1.4.2 Shape Properties on CMU CS Academy. I&#8217;m trying to make this shape. 1.4.2.1 Shape Properties checkpoint 2 Check Code Solution My Canvas Reset Code history Saved PEEQ BQ app.background = gradient(&#8216;red&#8217;, &#8216;black&#8217;) 1 2 3 Star(200, 200, 210, 5, fill=&#8217;white&#8217;), roundness=40, dashes=True) 4. * Checklist X: 170 y: Console Clear The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[25],"tags":[],"class_list":["post-187539","post","type-post","status-publish","format-standard","hentry","category-exams-certification"],"_links":{"self":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts\/187539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/comments?post=187539"}],"version-history":[{"count":0,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts\/187539\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/media?parent=187539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/categories?post=187539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/tags?post=187539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}