{"id":242,"date":"2022-01-29T17:13:26","date_gmt":"2022-01-29T22:13:26","guid":{"rendered":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/?p=242"},"modified":"2022-01-30T22:05:35","modified_gmt":"2022-01-31T03:05:35","slug":"rules-for-art-algorithmart-app","status":"publish","type":"post","link":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/tedrevitch\/rules-for-art-algorithmart-app\/","title":{"rendered":"Rules for Art &#8211; AlgorithmArt App"},"content":{"rendered":"\n<p>For this assignment, I used a simple algorithm that I wrote in Swift in Xcode.  As a result, I have created a small IOS application that creates random shapes (circles, triangles, or squares) wherever the user touches the screen.  Sometimes the shapes show up bigger or smaller or in a different orientation (like an upside-down triangle for instance).  I will provide the code below, however brief it may be:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.35.21-PM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.35.21-PM-1024x645.png\" alt=\"\" class=\"wp-image-243\" width=\"623\" height=\"393\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.35.21-PM-1024x645.png 1024w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.35.21-PM-800x504.png 800w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.35.21-PM-768x484.png 768w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.35.21-PM-1536x968.png 1536w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.35.21-PM-476x300.png 476w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.35.21-PM.png 1742w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/a><figcaption>GameScene.swift class<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.37.21-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"695\" src=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.37.21-PM-1024x695.png\" alt=\"\" class=\"wp-image-244\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.37.21-PM-1024x695.png 1024w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.37.21-PM-800x543.png 800w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.37.21-PM-768x521.png 768w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.37.21-PM-1536x1043.png 1536w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.37.21-PM-442x300.png 442w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.37.21-PM.png 1744w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>GameViewController.swift class<\/figcaption><\/figure>\n\n\n\n<p>To demonstrate my app, I will include this short screen recording from me using it once I was able to get it working on my phone (click the play button in the middle):<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/AlgoArt.mov\"><\/video><figcaption>AlgorithmArt App in action<\/figcaption><\/figure>\n\n\n\n<p>The resulting artwork along with some other designs I made with the app:<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-3 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/D5140929-E43B-4908-AA58-67F3315989C5.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"1024\" src=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/D5140929-E43B-4908-AA58-67F3315989C5-576x1024.jpeg\" alt=\"\" data-id=\"248\" data-full-url=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/D5140929-E43B-4908-AA58-67F3315989C5.jpeg\" data-link=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/?attachment_id=248\" class=\"wp-image-248\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/D5140929-E43B-4908-AA58-67F3315989C5-576x1024.jpeg 576w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/D5140929-E43B-4908-AA58-67F3315989C5-450x800.jpeg 450w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/D5140929-E43B-4908-AA58-67F3315989C5-169x300.jpeg 169w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/D5140929-E43B-4908-AA58-67F3315989C5.jpeg 750w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/a><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/F54077EF-9A17-4DD4-B120-3200DCFA8F28.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"1024\" src=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/F54077EF-9A17-4DD4-B120-3200DCFA8F28-576x1024.jpeg\" alt=\"\" data-id=\"249\" data-full-url=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/F54077EF-9A17-4DD4-B120-3200DCFA8F28.jpeg\" data-link=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/?attachment_id=249\" class=\"wp-image-249\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/F54077EF-9A17-4DD4-B120-3200DCFA8F28-576x1024.jpeg 576w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/F54077EF-9A17-4DD4-B120-3200DCFA8F28-450x800.jpeg 450w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/F54077EF-9A17-4DD4-B120-3200DCFA8F28-169x300.jpeg 169w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/F54077EF-9A17-4DD4-B120-3200DCFA8F28.jpeg 750w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/a><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/FC29B4FC-F2A0-489D-9DF0-7C9DF0329A90.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"1024\" src=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/FC29B4FC-F2A0-489D-9DF0-7C9DF0329A90-576x1024.jpeg\" alt=\"\" data-id=\"250\" data-full-url=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/FC29B4FC-F2A0-489D-9DF0-7C9DF0329A90.jpeg\" data-link=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/?attachment_id=250\" class=\"wp-image-250\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/FC29B4FC-F2A0-489D-9DF0-7C9DF0329A90-576x1024.jpeg 576w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/FC29B4FC-F2A0-489D-9DF0-7C9DF0329A90-450x800.jpeg 450w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/FC29B4FC-F2A0-489D-9DF0-7C9DF0329A90-169x300.jpeg 169w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/FC29B4FC-F2A0-489D-9DF0-7C9DF0329A90.jpeg 750w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/a><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p>I had my two roommates and my girlfriend all try to make art using my small app.  Here is what they came up with:<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-3 is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/856134C7-9B8F-435C-A65B-F20DEFBBDD2C.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"1024\" src=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/856134C7-9B8F-435C-A65B-F20DEFBBDD2C-576x1024.jpeg\" alt=\"\" data-id=\"252\" data-full-url=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/856134C7-9B8F-435C-A65B-F20DEFBBDD2C.jpeg\" data-link=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/?attachment_id=252\" class=\"wp-image-252\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/856134C7-9B8F-435C-A65B-F20DEFBBDD2C-576x1024.jpeg 576w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/856134C7-9B8F-435C-A65B-F20DEFBBDD2C-450x800.jpeg 450w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/856134C7-9B8F-435C-A65B-F20DEFBBDD2C-169x300.jpeg 169w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/856134C7-9B8F-435C-A65B-F20DEFBBDD2C.jpeg 750w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/a><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/BB4F1C9E-CC80-408A-B321-A7F133177741.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"1024\" src=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/BB4F1C9E-CC80-408A-B321-A7F133177741-576x1024.jpeg\" alt=\"\" data-id=\"253\" data-full-url=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/BB4F1C9E-CC80-408A-B321-A7F133177741.jpeg\" data-link=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/?attachment_id=253\" class=\"wp-image-253\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/BB4F1C9E-CC80-408A-B321-A7F133177741-576x1024.jpeg 576w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/BB4F1C9E-CC80-408A-B321-A7F133177741-450x800.jpeg 450w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/BB4F1C9E-CC80-408A-B321-A7F133177741-169x300.jpeg 169w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/BB4F1C9E-CC80-408A-B321-A7F133177741.jpeg 750w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/a><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/80516EAE-4CF5-409A-93E8-8D4B6A3BB28C-1.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"1024\" src=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/80516EAE-4CF5-409A-93E8-8D4B6A3BB28C-1-576x1024.jpeg\" alt=\"\" data-id=\"254\" data-full-url=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/80516EAE-4CF5-409A-93E8-8D4B6A3BB28C-1.jpeg\" data-link=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/?attachment_id=254\" class=\"wp-image-254\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/80516EAE-4CF5-409A-93E8-8D4B6A3BB28C-1-576x1024.jpeg 576w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/80516EAE-4CF5-409A-93E8-8D4B6A3BB28C-1-450x800.jpeg 450w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/80516EAE-4CF5-409A-93E8-8D4B6A3BB28C-1-169x300.jpeg 169w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/80516EAE-4CF5-409A-93E8-8D4B6A3BB28C-1.jpeg 750w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/a><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p>Although my app and algorithm were both very simple, I believe that it was able to produce some quite interesting pieces of art.  Not only that, but some of the principles that we discussed in last class showed up in these art pieces.  <\/p>\n\n\n\n<p>When the shapes are placed around the space by the user randomly, it gives the artwork the feeling of perspective because of the differing sizes of the shapes (it almost looks like a bunch of shapes flying towards you with some farther away than others).  This artwork also certainly incorporated overlapping and rotation as techniques.  I do feel as though this app could be used to generate symmetrical art forms as well, but because of the randomness of the algorithm, this could take several tries.  I was surprised to see that in one of the screenshots of art that my roommate tried making, it demonstrates the spiral that we saw in class!<\/p>\n\n\n\n<p>This turned out to be a fun little project and maybe I can even try expanding on it in the future to make something even cooler!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For this assignment, I used a simple algorithm that I wrote in Swift in Xcode. As a result, I have created a small IOS application that creates random shapes (circles, triangles, or squares) wherever the user touches the screen. Sometimes the shapes show up bigger or smaller or in a different orientation (like an upside-down&#8230; <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/tedrevitch\/rules-for-art-algorithmart-app\/\">Read More<\/a><\/div>\n","protected":false},"author":255,"featured_media":246,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"","footnotes":""},"categories":[15],"tags":[13,14,12],"class_list":["post-242","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rules-for-art","tag-algorithm","tag-app","tag-rules-for-art"],"jetpack_featured_media_url":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/01\/Screen-Shot-2022-01-29-at-4.44.56-PM.png","_links":{"self":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/posts\/242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/users\/255"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/comments?post=242"}],"version-history":[{"count":3,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/posts\/242\/revisions"}],"predecessor-version":[{"id":256,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/posts\/242\/revisions\/256"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/media\/246"}],"wp:attachment":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/media?parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/categories?post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/tags?post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}