{"id":72944,"date":"2022-09-24T22:39:29","date_gmt":"2022-09-25T02:39:29","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/?p=72944"},"modified":"2022-09-24T22:40:22","modified_gmt":"2022-09-25T02:40:22","slug":"lines-a-face","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/09\/24\/lines-a-face\/","title":{"rendered":"Lines: A face"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body><p>For this project, I tried to make a face out of simple lines. When constructing faces, it is always interesting to see how simplistic or complicated you could make it through the assumptions of what is considered a face.<\/p>\n\n\n\n<div><a class=\"p5_sketch_link\" href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2022\/09\/lines-project.js\" data-width=\"&ldquo;400&rdquo;\" data-height=\"&ldquo;400&rdquo;\">sketch<\/a><iframe src=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/plugins\/p5-embedder\/p5_iframe.html\" class=\"p5_exampleFrame\" width=\"&ldquo;400&rdquo;\" height=\"&ldquo;400&rdquo;\"><\/iframe><pre class=\"language-javascript\"><code class=\"p5_editor language-javascript\">var dx1;\nvar dy1;\nvar dx2;\nvar dy2;\nvar numLines = 50;\n\nfunction setup() {\n    createCanvas(400, 400);\n    background(200);\n    line(50, 50, 150, 300);\n    line(300, 300, 350, 100);\n    line(10,380,180,300);\n    line(280,260,370,390);\n    dx1 = (150-50)\/numLines;\n    dy1 = (300-50)\/numLines;\n    dx2 = (350-300)\/numLines;\n    dy2 = (100-300)\/numLines;\n}\n\nfunction draw() {\n    fill(0);\n    triangle(200,0,140,100,180,110);\n    triangle(180,140,200,120,280,145);\n    triangle(190,145,200,160,240,150);\n    var x1 = 50;\n    var y1 = 50;\n    var x2 = 300;\n    var y2 = 300;\n    for (var i = 0; i &lt;= numLines; i += 1) {\n        line(x1, y1, x2, y2);\n        x1 += dx1;\n        y1 += dy1;\n        x2 += dx2;\n        y2 += dy2;\n    } for (var i = -150; i &lt;= numLines * 2; i += 4) {\n        line(x1, y1, x2, y2);\n        x1 += dx1 \/ 2;\n        y1 += dy1 \/ 2;\n        x2 += dx2 \/ 2;\n        y2 += dy2 \/ 2;\n        \/\/eyelashes i think\n    } for (var i = 1; i &lt;= numLines * 2; i += 4) {\n        line(x2 * 5, y1 , x1 -50, y2 + 40);\n        var x1 = 0;\n        var x2 = 200;\n        var y1 = 300;\n        var y2 = 350;\n        x1 += dx1;\n        y1 += dy1;\n        x2 += dx2;\n        y2 += dy2;\n        \/\/random lines for texture\n    } for (var i = 0; i &lt;= numLines; i += 2) {\n        line(x1, y1 - 300, x2, y2 - 300);\n        x1 += dx1;\n        y1 += dy1;\n        x2 += dx2;\n        y2 += dy2;\n        \/\/hair\n    } for (var i = 0; i &lt;= numLines; i += 2) {\n        x2 = 80;\n        y2 = 30;\n        line(x1, y1 - 300, x2, y2 - 300);\n        x1 -= dx1;\n        y1 -= dy1;\n        x2 += dx2;\n        y2 += dy2; }\n    for (var i = 0; i &lt;= numLines; i += 1) {\n        line(x1, y1, x2, y2);\n        x1 += dx1;\n        y1 += dy1;\n        x2 += dx2;\n        y2 += dy2;  }\n    x1 = 10;\n    y1 = 380;\n    x2 = 280;\n    y2 = 260;\n    for (var i = 0; i &lt;= numLines; i += 1) {\n        line(x1, y1, x2, y2);\n        x1 += dx1;\n        y1 += dy1;\n        x2 += dx2;\n        y2 += dy2;  }\n    noLoop();\n}\n<\/code><\/pre><\/div><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>For this project, I tried to make a face out of simple lines. When constructing faces, it is always interesting to see how simplistic or complicated you could make it through the assumptions of what is considered a face.<\/p>\n","protected":false},"author":730,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[86,81],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/72944"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/users\/730"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/comments?post=72944"}],"version-history":[{"count":1,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/72944\/revisions"}],"predecessor-version":[{"id":72945,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/72944\/revisions\/72945"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/media?parent=72944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/categories?post=72944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/tags?post=72944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}