mirror of
https://github.com/brendanhaines/ProcessingSketches.git
synced 2024-11-09 21:14:50 -07:00
25 lines
481 B
Plaintext
25 lines
481 B
Plaintext
import javax.swing.*;
|
|
|
|
final int backgroundColor = 51;
|
|
Copter copter = new Quad();
|
|
|
|
JFrame frame = new JFrame( "blah" );
|
|
frame.setResizable( true );
|
|
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
|
|
JButton button = new JButton( "blah" );
|
|
frame.add( button );
|
|
frame.pack();
|
|
frame.setVisible( true );
|
|
|
|
void setup(){
|
|
size( 640, 360, P3D );
|
|
background( backgroundColor );
|
|
}
|
|
|
|
void draw(){
|
|
|
|
// Begin to draw new image
|
|
background( backgroundColor );
|
|
copter.draw3d();
|
|
}
|