Sorry in advance if this has been covered before, but I haven't been able to find a good resource for how to set up dat.gui with processingjs. I'm new to js, so I'd like to know if anyone could offer step by step instructions for how to setup your processingjs and html files to use dat.gui (
http://workshop.chromeexperiments.com/examples/gui/#1--Basic-Usage).
I'm really having trouble uploading a file to openprocessing using the controlP5 library. I'm trying to do this with the newer version, and from what I've learned, using processingjs prohibits .jar files (like the P5 library) from being uploaded. How then do I upload a script with a p5 slider? Can anyone advise as to how one would do upload, say the SingleSlider example file from controlP5 to openprocessing?
Using the SQL Library, I've been able to query just fine, but haven't been able to perform execute commands. I'm getting the java.sql.SQLException. My code's below, am I missing something here? Thanks for any help!
//setup mysql
import de.bezier.data.sql.*;
MySQL msql;
int wide=800;
int high=600;
void setup()
{
size( wide, high);
// replace --username--, --password-- with your mysql-account
String user = "root";
String pass = "password#";
String database = "meshes";
// connect to database of server "localhost"
//
msql = new MySQL( this, "localhost", database, user, pass );
if ( msql.connect() )
{
println("we are connected");
msql.query( "SELECT COUNT(*) FROM speed_faces" );
msql.next();
msql.query( "SELECT COUNT(*) FROM speed_vertices" );
msql.next();
msql.next();
msql.execute("CREATE TABLE IF NOT EXISTS meshes.paramtest;");
Is anyone aware of a way to have the default viewport be full screen perspective, rather than the 4 viewport pane set up by default? I'm having trouble using IView. Thanks for any help!
I'm trying to setup a processing script where I can use a variable in the place of a char() to do the key() command.
ie: Instead of saying if(key=='1'), I want to say,
void draw(){
for(i=0;i<10;i++){
if(key=i){
variable=i;
}
}
where i is the iterator in a for loop. I need to do this because I'm setting up a script where the number of keys to pressed varied. Anyone have a suggestion as to how to go about this:
Is there a way to sort an array and have another array of equal size sort synchronously? Something along the lines of key/value commands in other languages. This doesn't seem to be a part of the sort() command, and I'm not sure how to get this done with 2D arrays either.
I'm getting on a plane tonight without internet access an I want to get my processing on. Is there an available, downloadable pdf of some sort that I can use to access all of the processing commands? The resources part of this site are great but are limiting because you need internet access.