Canvas Experiment



When starting off brainstorming my ideas and thought process for this project, I took a pen to graph paper and sketched an outline of my goal for the outcome of my first piece in the class.  The process of planning out exactly what I wanted to produce in this project gave me the head start that I needed to now conceptualize my design to Adobe Dreamweaver.  As a Junior at the University of Tampa, the workload of my academic career is at an all-time high which can often tend to make students feel overwhelmed or stressed from the amount of commitment that their classes can bring on.  I decided to use this project as a stress releaser and bring the viewer of this piece into a positive mindset by recreating the most family-oriented and cheerful time of every year which is the holiday season.  My personal take on the holiday season always involves snow being on the ground with decorations all around for everyone to enjoy and partake in themselves.  Ever since I can remember, my family has held a tradition of making a snowman together which would always be the specific way that my family would bring in the holiday season and those memories are something that I will hold onto forever.  With my best efforts, I attempted to recreate a snowman full of holiday cheer placed in an open field that not only comes around during the holiday season but who is around permanently bringing happiness to anyone who crosses path with this project.  I used a variety of different shapes to set the stage for this project including triangles, rectangles, and circles to bring together the layout of the character I focused on depicting.  Throughout the process of putting together my project, I decided to use a Bezier and Quadratic curve to design the background I was searching for in order for the character I was creating to be showcased correctly.  Every piece of art has the potential to make an external connection with their audience and I strived my absolute best to design a piece of work that pushes viewers to be enlightened on a pleasant or peaceful level rooting them back to memories that will make them smile. 


My Code:

// ORANGE TRIANGLE

context.beginPath(); // begin a shape

context.moveTo(535,180); // point A coordinates
context.lineTo(570, 190); // point B coords
context.lineTo(535,190); // point C coords
context.closePath(); // close the shape
context.lineWidth = 2
; // you can use a variable that changes wherever you see a number
context.lineJoin = "round";
context.strokeStyle = "orange"; // Reb Green Blue Alpha
context.stroke();
    
context.fillStyle = "orange"; //
context.fill();

var x=205;
var y=400;
var width = 20
var height= 70;

context.beginPath();
context.rect(x, y, width, height);
context.lineWidth = 10;
//context.fillStyle = "black";
context.strokeStyle = "black";
// add linear gradient
        
        context.fillStyle = "black";
        context.fill();
context.fill();
var x=498;
var y=65;
var width = 70
var height= 70;

context.beginPath();
context.rect(x, y, width, height);
context.lineWidth = 10;
//context.fillStyle = 'rgb(0,0,0,1)';
context.strokeStyle = 'rgb(0,0,0,1)';
// add linear gradient
        
        context.fillStyle = "rgb(0,0,0,1)";
        context.fill();

 var x=483;
var y=114;
var width = 100
var height= 22;

context.beginPath();
context.rect(x, y, width, height);
context.lineWidth = 10;
//context.fillStyle = 'rgb(0,0,0,1)';
context.strokeStyle = 'rgb(0,0,0,1)';
// add linear gradient
        
        context.fillStyle = "rgb(0,0,0,1)";
        context.fill();
//Simple lines

context.moveTo(440,250); // COORDINATES OF STARTING POINT
context.lineTo(500,275); // COORDS OF ENDING POINT 1
context.lineWidth = 7; // STROKE WIDTH
context.strokeStyle = "black";
context.stroke(); // STROKE
//Simple lines

context.moveTo(435,270); // COORDINATES OF STARTING POINT
context.lineTo(458,260); // COORDS OF ENDING POINT 1
context.lineWidth = 5; // STROKE WIDTH
context.strokeStyle = "black";
context.stroke(); // STROKE
//Simple lines

context.moveTo(625,250); // COORDINATES OF STARTING POINT
context.lineTo(565,275); // COORDS OF ENDING POINT 1
context.lineWidth = 7; // STROKE WIDTH
context.strokeStyle = "black";
context.stroke(); // STROKE
//Simple lines

context.moveTo(625,270); // COORDINATES OF STARTING POINT
context.lineTo(600,260); // COORDS OF ENDING POINT 1
context.lineWidth = 6; // STROKE WIDTH
context.strokeStyle = "black";
context.stroke(); // STROKE
 ////circle

  var centerX = canvas.width / 1.5;
        var centerY = canvas.height / 1.3;
        var radius = 90;
        var startangle = 0;
        var endangle = 2 * Math.PI;

        context.beginPath();
        context.arc(centerX, centerY, radius, startangle, endangle, false);
    
        context.lineWidth = 5;
        context.strokeStyle = "black";
        context.stroke();

 ////circle

  var centerX = canvas.width / 1.5;
        var centerY = canvas.height / 2;
        var radius = 70;
        var startangle = 0;
        var endangle = 2 * Math.PI;

        context.beginPath();
        context.arc(centerX, centerY, radius, startangle, endangle, false);
    
        context.lineWidth = 5;
        context.strokeStyle = "black";
        context.stroke();

 var centerX = canvas.width / 1.5;
        var centerY = canvas.height / 3.4;
        var radius = 50;
        var startangle = 0;
        var endangle = 2 * Math.PI;

        context.beginPath();
        context.arc(centerX, centerY, radius, startangle, endangle, false);
    
        context.lineWidth = 5;
        context.strokeStyle = "black";
        context.stroke();


// GREEN TRIANGLE
context.beginPath(); // begin a shape

context.moveTo(50,200); // point A coordinates
context.lineTo(380, 200); // point B coords
context.lineTo(220,50); // point C coords
context.closePath(); // close the shape
context.lineWidth = 15
; // you can use a variable that changes wherever you see a number
context.lineJoin = "round";
context.strokeStyle = "rgb(0,153,76)"; // Reb Green Blue Alpha
context.stroke();

context.fillStyle = "rgb(0,153,76)"; // Reb Green Blue Alpha
context.fill(); 

// GREEN TRIANGLE
context.beginPath(); // begin a shape

context.moveTo(50,300); // point A coordinates
context.lineTo(380, 300); // point B coords
context.lineTo(220,150); // point C coords
context.closePath(); // close the shape
context.lineWidth = 15
; // you can use a variable that changes wherever you see a number
context.lineJoin = "round";
context.strokeStyle = "rgb(0,153,76)"; // Reb Green Blue Alpha
context.stroke();
context.fillStyle = "rgb(0,153,76)"; // Reb Green Blue Alpha
context.fill();

// GREEN TRIANGLE
context.beginPath(); // begin a shape

context.moveTo(50,400); // point A coordinates
context.lineTo(380, 400); // point B coords
context.lineTo(220,150); // point C coords
context.closePath(); // close the shape
context.lineWidth = 15
; // you can use a variable that changes wherever you see a number
context.lineJoin = "round";
context.strokeStyle = "rgb(0,153,76)"; // Reb Green Blue Alpha
context.stroke();
context.fillStyle = "rgb(0,153,76)"; // Reb Green Blue Alpha
context.fill();
// starting point coordinates
var x = 0;
var y = 500;

// control point 1 coordinates ( magnet )
var cpointX1 = canvas.width / 5;
var cpointY1 = canvas.height / 2 + 250;

// control point 2 coordinates ( magnet )
var cpointX2 = canvas.width / 1;
var cpointY2 = canvas.height / 2 - 100; 

// ending point coordinates 
var x1 = 800;
var y1 = 400;


context.beginPath();
context.moveTo(x, y);
context.bezierCurveTo(cpointX1, cpointY1, cpointX2, cpointY2, x1, y1);

context.lineWidth = 6;
context.strokeStyle = "rgb(0,0,50)";
context.lineCap = 'round' 
context.stroke();

////circle

  var centerX = canvas.width / 1.5;
        var centerY = canvas.height / 2.2;
        var radius = 3;
        var startangle = 0;
        var endangle = 2 * Math.PI;

        context.beginPath();
        context.arc(centerX, centerY, radius, startangle, endangle, false);
    
        context.lineWidth = 5;
        context.strokeStyle = "black";
        context.stroke();
////circle

  var centerX = canvas.width / 1.45;
        var centerY = canvas.height / 3.5;
        var radius = 3;
        var startangle = 0;
        var endangle = 2 * Math.PI;

        context.beginPath();
        context.arc(centerX, centerY, radius, startangle, endangle, false);
    
        context.lineWidth = 5;
        context.strokeStyle = "black";
        context.stroke();
////circle

  var centerX = canvas.width / 1.54;
        var centerY = canvas.height / 3.5;
        var radius = 3;
        var startangle = 0;
        var endangle = 2 * Math.PI;

        context.beginPath();
        context.arc(centerX, centerY, radius, startangle, endangle, false);
    
        context.lineWidth = 5;
        context.strokeStyle = "black";
        context.stroke();
////circle

  var centerX = canvas.width / 1.56;
        var centerY = canvas.height / 3;
        var radius = 1;
        var startangle = 0;
        var endangle = 2 * Math.PI;

        context.beginPath();
        context.arc(centerX, centerY, radius, startangle, endangle, false);
    
        context.lineWidth = 5;
        context.strokeStyle = "black";
        context.stroke();
////circle

  var centerX = canvas.width / 1.52;
        var centerY = canvas.height / 2.9;
        var radius = 1;
        var startangle = 0;
        var endangle = 2 * Math.PI;

        context.beginPath();
        context.arc(centerX, centerY, radius, startangle, endangle, false);
    
        context.lineWidth = 5;
        context.strokeStyle = "black";
        context.stroke();
////circle

  var centerX = canvas.width / 1.48;
        var centerY = canvas.height / 2.9;
        var radius = 1;
        var startangle = 0;
        var endangle = 2 * Math.PI;

        context.beginPath();
        context.arc(centerX, centerY, radius, startangle, endangle, false);
    
        context.lineWidth = 5;
        context.strokeStyle = "black";
        context.stroke();
////circle

  var centerX = canvas.width / 1.44;
        var centerY = canvas.height / 3;
        var radius = 1;
        var startangle = 0;
        var endangle = 2 * Math.PI;

        context.beginPath();
        context.arc(centerX, centerY, radius, startangle, endangle, false);
    
        context.lineWidth = 5;
        context.strokeStyle = "black";
        context.stroke();
////circle

  var centerX = canvas.width / 1.5;
        var centerY = canvas.height / 1.9;
        var radius = 3;
        var startangle = 0;
        var endangle = 2 * Math.PI;

        context.beginPath();
        context.arc(centerX, centerY, radius, startangle, endangle, false);
    
        context.lineWidth = 5;
        context.strokeStyle = "black";
        context.stroke();
////circle

  var centerX = canvas.width / 1.5;
        var centerY = canvas.height / 1.46;
        var radius = 3;
        var startangle = 0;
        var endangle = 2 * Math.PI;

        context.beginPath();
        context.arc(centerX, centerY, radius, startangle, endangle, false);
    
        context.lineWidth = 5;
        context.strokeStyle = "black";
        context.stroke();
////circle

  var centerX = canvas.width / 1.5;
        var centerY = canvas.height / 1.35;
        var radius = 3;
        var startangle = 0;
        var endangle = 2 * Math.PI;

        context.beginPath();
        context.arc(centerX, centerY, radius, startangle, endangle, false);
    
        context.lineWidth = 5;
        context.strokeStyle = "black";
        context.stroke();
////circle

  var centerX = canvas.width / 1.5;
        var centerY = canvas.height / 1.25;
        var radius = 3;
        var startangle = 0;
        var endangle = 2 * Math.PI;

        context.beginPath();
        context.arc(centerX, centerY, radius, startangle, endangle, false);
    
        context.lineWidth = 5;
        context.strokeStyle = "black";
        context.stroke();

Comments

Popular posts from this blog

Self Portrait Assignment

Autoscopy

Somewhere