dropP5 / DropEvent / text( )

name
text ( )
description
when dropping text onto the applet you can access the text with the getText() method. 
+Examples
/**
 * basic demonstration of dragging text into the sketch.
 * code by andreas schlegel. http://www.sojamo.de/dropP5
*/
import dropP5.*;

DropP5 dropP5;

void setup() {
  size(400,400);
  frameRate(30);
  dropP5 = new DropP5(this);
}

void draw() {
  background(0);
}


void dropEvent(DropEvent theDropEvent) {
  // drag some text from e.g. a text editor into 
  // the sketch.
  println(theDropEvent.text());
}

Syntax
text();


Returns
String
Usage
Web & Application
Related