Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Label(txt)
- {
- this.txt = txt;
- this.size = 10;
- this.pos = createVector(0, 0);
- this.align = CORNER;
- this.col = color(0);
- this.draw = function()
- {
- push();
- textSize(this.size);
- textAlign(this.align);
- fill(this.col);
- text(this.txt, this.pos.x, this.pos.y);
- pop();
- };
- }
Add Comment
Please, Sign In to add comment