2/24/14

Javascript Mouse x - y POS Scripts

      <canvas id="irregularShape" width="1000" height="1000"></canvas>
    <script>
      function writeMessage(canvas, message) {
        var context = canvas.getContext('2d');
        context.clearRect(0, 0, canvas.width, canvas.height);
        context.font = '18pt Calibri';
        context.fillStyle = 'yellow';
        context.fillText(message, 10, 25);
      }
      function getMousePos(canvas, evt) {
        var rect = canvas.getBoundingClientRect();
        return {
          x: evt.clientX - rect.left,
          y: evt.clientY - rect.top
        };
      }
      var canvas = document.getElementById('irregularShape');
      var context = canvas.getContext('2d');

      canvas.addEventListener('mousemove', function(evt) {
        var mousePos = getMousePos(canvas, evt);
        var message = 'Mouse position: ' + mousePos.x + ',' + mousePos.y;
        writeMessage(canvas, message);
      }, false);
    </script>

SERIF vs. SANS


CSS trick - Draw triangle with just border

I just came across this article while trying to figure out how did Cloeth draw her triangle.  And here is a detailed explanation of how CSS borders work. Hope you will find it helpful!

http://www.growingwiththeweb.com/2013/03/triangles-in-css.html


Exercise 2 - Frank Hu


Exercise 2 - Franki Abraham

This is the original image I imitated using HTML and CSS coding:


And here is some information on it:


And here is the link for my imitation:


2/23/14

Exercise 2-Lauren Arnold

 Here is the link to where you can find the original image.

Here is the link to view my art piece:


And here is the original:

Here is an image of mine in case the zip does not show up:


And here is the background information about the piece:
The message of this WWI poster is to encourage Americans to help out with the war by choosing to obey the rules which are: do not repeat any rumors concerning U.S. troops and to join the U.S. marines. The image and the original data are all from University of Minnesota Libraries.

I struggled with figuring out how to find some of the texts, as the one is a personal signature at the bottom. And also making the image to look older and more antique, I did not know how to do this. I am thinking maybe I could overlay a translucent looking image to make it look more antique.





Exercise 2 - Panpan Deng



Above is the information of my project's source.
Here is my Exercise 2.

The main reason why I choose this image is that I believe our writing reflects ourselves in a large extent. When people are writing, with or without conscious, their emotion, experience even appearance are shown between the lines.