mirror of
https://github.com/brendanhaines/ProcessingSketches.git
synced 2025-08-01 21:31:57 -06:00
initial commit
This commit is contained in:
7
GroundStation/Copter.pde
Normal file
7
GroundStation/Copter.pde
Normal file
@@ -0,0 +1,7 @@
|
||||
public abstract class Copter {
|
||||
public int[] channels;
|
||||
public int[] motors;
|
||||
|
||||
public Copter(){}
|
||||
public void draw3d(){}
|
||||
}
|
24
GroundStation/GroundStation.pde
Normal file
24
GroundStation/GroundStation.pde
Normal file
@@ -0,0 +1,24 @@
|
||||
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();
|
||||
}
|
8
GroundStation/Quad.pde
Normal file
8
GroundStation/Quad.pde
Normal file
@@ -0,0 +1,8 @@
|
||||
public class Quad extends Copter {
|
||||
public Quad(){
|
||||
this.motors = new int[4];
|
||||
}
|
||||
|
||||
public void draw3d(){
|
||||
}
|
||||
}
|
2
GroundStation/sketch.properties
Normal file
2
GroundStation/sketch.properties
Normal file
@@ -0,0 +1,2 @@
|
||||
mode.id=processing.mode.java.JavaMode
|
||||
mode=Java
|
Reference in New Issue
Block a user