Monday, March 20, 2017

ASCII

 My Project


<!DOCTYPE HTML>
<html>
<head>
<script>
window.onload = function() {
var canvas = document.getElementById("myCanvas");
var context = canvas.getContext("2d");

////////////////////////////////////// start below this line ˇˇˇˇˇˇˇˇˇˇ

context.beginPath();
context.arc(375, 300, 175, 0, 2*Math.PI, false);
context.lineWidth = 15;
context.fillStyle = "red"
context.fill();
context.strokeStyle = "red";
context.stroke();

context.beginPath();
context.moveTo(301.4, 100);
context.lineTo(301.4, 300);
context.lineWidth = 48;
context.strokeStyle = "white";
context.stroke();

context.beginPath();
context.arc(375, 300, 90, 0, 2*Math.PI, false);
context.lineWidth = 15;
context.fillStyle = "white"
context.fill();
context.strokeStyle = "white";
context.stroke();

context.beginPath();
context.arc(375, 300, 52, 0, 2*Math.PI, false);
context.lineWidth = 15;
context.fillStyle = "red"
context.fill();
context.strokeStyle = "red";
context.stroke();

////////////////////////////////////// end above this line ˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆ

};

</script>
</head>
<body>
<canvas id="myCanvas" width="800" height="600"></canvas>
</body>
</html>



 Graph Reference:


Original Image Reference :



Artist Statement:
For this project I decided to illustrate the logo of one of my favorite companies- Beats.  I struggled very much with this project just because I had never used code before in my entire life so it was all new for me.  I had to use many resources to be sure I was inputting the correct code.  Even then, there were countless times where my image just wouldn't show up when I wanted to because of one small mistake that was hard for me to identify.  I found this project very difficult but I'm happy with my hard work to get this final product.  I also believe that this may good be a good tool to be familiar with moving forward in my life.

No comments:

Post a Comment