daily pastebin goal
23%
SHARE
TWEET

Label.js

a guest Dec 9th, 2016 30 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Label(txt)
  2. {
  3.     this.txt   = txt;
  4.     this.size  = 10;
  5.     this.pos   = createVector(0, 0);
  6.     this.align = CORNER;
  7.     this.col   = color(0);
  8.    
  9.     this.draw = function()
  10.     {
  11.         push();
  12.         textSize(this.size);
  13.         textAlign(this.align);
  14.         fill(this.col);
  15.         text(this.txt, this.pos.x, this.pos.y);
  16.         pop();
  17.     };
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top