Wednesday, February 6, 2013

Heart Design in HTML 5

It was very hard to get used finding the right coordinates to make a perfect rounded heart using the codes for a bezier and quadratic curve. But once I finished half of the heart, it was easier to match up the points on the other side to complete the heart. Then after I put color to it, it turned out a lot better than I thought!

<!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);
var grd=context.createLinearGradient(0, 300, 800, 300);
grd.addColorStop(0, 'rgb(250, 50, 240)');
grd.addColorStop(1, 'rgb(100, 200, 50)');
context.fillStyle = grd;
context.fill();
context.stroke();


context.beginPath();
context.moveTo(390, 175);
context.bezierCurveTo(275, 25, 125, 175, 300, 340);
context.quadraticCurveTo(350, 390, 390, 450);
context.quadraticCurveTo(430, 390, 480, 340);
context.bezierCurveTo(655, 175, 505, 25, 390, 175);
context.fillStyle= 'rgb(255, 0, 0)';
context.fill();
context.stroke();










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

};

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

Sunday, January 27, 2013


Hi! My name is Nicole Desrosiers and I am a senior a the University of Tampa. I was born in North Carolina, but moved to Florida when I was two. So I grew up and have lived in Tampa almost all of my life. Some interesting things about me: I am the youngest of three children and absolutely love spending time with my family, I have been in a happy relationship with my high school sweetheart for 4 1/2 years, I am type 1 diabetic, I love to bake, I love to sing, and I am absolutely obsessed with bulldogs! I have an American Bulldog and my sister has an English. I work at Blondie's Cookies and also make cupcakes and cakes out of my home for special events. I also perform at Busch Gardens seasonally, and hope to work there more once I graduate. I am very excited about taking my first digital arts class because I am not very good at art, unless it's decorating cakes or cookies with frosting! I hope to learn a lot about the different programs and how to create a website for my own business one day "What's Baking? Custom Creations". I have so much passion for my hobbies, but I think this class will help me develop the knowledge to pursue my hobbies as careers. =)