Skip to content

Instantly share code, notes, and snippets.

var canvas;
var handleVal;
var isClicked = false;
//var clock;
// Class Definition
var UiHandle = function (startX, startY, width, height){
this.x = startX;
this.y = startY;
var tweet = "These 5 incredible stories from the IDF are sure to leave #inspired";
// turn tweet into an array
var words = tweet.split(" ");
// get half the length of the words
var half_length = Math.ceil(arrayName.length / 2);
// get the words on the left side
var leftSide = words.splice(0, half_length);