This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
import javax.swing.WindowConstants; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.Point; | |
import java.awt.event.MouseListener; | |
import java.awt.event.MouseEvent; | |
import java.awt.Color; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PrintWriter output; | |
void setup() { | |
// Create a new file in the sketch directory | |
output = createWriter("positions.txt"); | |
} | |
void draw() { | |
point(mouseX, mouseY); | |
output.println(mouseX); // Write the coordinate to the file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var t =[]; | |
t.push(new Turtle("blue")); | |
t.push(new Turtle("red")); | |
t.push(new Turtle("orange")); | |
t.push(new Turtle("yellow")); | |
t.push(new Turtle("green")); | |
t.push(new Turtle("purple")); | |
t.push(new Turtle("blue")); | |
t.push(new Turtle("red")); | |
t.push(new Turtle("orange")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ArrayList<Bub> b = new ArrayList<Bub>(); | |
boolean press = false; | |
void setup(){ | |
size(600,400); | |
} | |
void draw() | |
{ | |
background(0); | |
for(int i = 0; i<b.size(); i++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ArrayList<Bub> b = new ArrayList<Bub>(); | |
boolean press = false;//you will want to use this | |
void setup(){ | |
size(600,400); | |
} | |
void draw() | |
{ | |
background(0); | |
for(int i = 0; i<b.size(); i++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class BankAccount | |
{ | |
private double balance; | |
private double name; | |
public BankAccount(String name, double balance){ | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
* { | |
cursor: none; | |
} | |
video { | |
pointer-events: none; | |
} | |
video::-webkit-media-controls-overlay-enclosure { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
import javax.swing.WindowConstants; | |
import java.awt.Dimension; | |
import java.awt.Color; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.Point; | |
import java.awt.event.MouseListener; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
import javax.swing.WindowConstants; | |
import java.awt.Dimension; | |
import java.awt.Color; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.Point; | |
import java.awt.event.MouseListener; |