Wednesday 6 February 2013

This is HEART Work!

 


You aorta know, that I spent much too long on this.



"Yeah, no, don't sign me up for cardio."
- Fat Amy 

She gets me.



<!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.rect(0,0,800,600);
context.lineWidth = 25;
var grd = context.createLinearGradient(0,0,800,600);
grd.addColorStop(0, 'rgb(100,125,255)');
grd.addColorStop(1, 'lightgrey');
context.fillStyle = grd;
context.strokeStyle = 'lightgrey';
context.fill();
context.stroke();

context.beginPath();
context.moveTo(0,100);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(800,100);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(800,200);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(800,300);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(800,400);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(800,500);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(800,600);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(700,600);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(600,600);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(500,600);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(400,600);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(0,200);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(0,300);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(0,400);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(0,500);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(0,600);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(100,600);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(200,600);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();

context.moveTo(300,600);
context.lineTo(400,450);
context.lineWidth = 5;
context.strokeStyle = 'lightgrey';
context.stroke();






context.beginPath();
context.moveTo(400,250);
context.bezierCurveTo(200,85,200,300,400,450);
context.lineWidth = 5;
context.strokeStyle = 'black';
context.stroke();

context.moveTo(400,250);
context.bezierCurveTo(600,85,600,300,400,450);
context.lineWidth = 5;
context.strokeStyle = 'black';
context.stroke();

/*
context.moveTo(400,300);
context.bezierCurveTo(400,100,100,1,400,500);
context.lineWidth = 5;
context.strokeStyle = 'black';
context.stroke();

context.moveTo(400,300);
context.bezierCurveTo(400,100,700,1,400,500);
context.lineWidth = 5;
context.strokeStyle = 'black';
context.stroke();
*/
context.beginPath();
//center
context.moveTo(400,250);
context.lineTo(400,455);
context.lineWidth = 2;
context.lineCap = 'round';
context.strokeStyle = 'black';
context.stroke();
//center, right
context.moveTo(400,455);
context.lineTo(440,222);
context.lineWidth = 2;
context.strokeStyle = 'black';
context.stroke();
//far right
context.moveTo(400,455);
context.lineTo(550,240);
context.lineWidth = 2;
context.strokeStyle = 'black';
context.stroke();
//mid right
context.moveTo(400,455);
context.lineTo(500,193);
context.lineWidth = 2;
context.strokeStyle = 'black';
context.stroke();
//mid left
context.moveTo(400,455);
context.lineTo(300,193);
context.lineWidth = 2;
context.strokeStyle = 'black';
context.stroke();
//center, left
context.moveTo(400,455);
context.lineTo(360,222);
context.lineWidth = 2;
context.strokeStyle = 'black';
context.stroke();
//far left
context.moveTo(400,455);
context.lineTo(250,240);
context.lineWidth = 2;
context.strokeStyle = 'black';
context.stroke();




////////////////////////////////////// end above this line ààààààààààààààà

};

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


No comments:

Post a Comment