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
//The EEGen Project | |
//Created by Galya Oberman | |
//theeegenproject.wordpress.com | |
import processing.serial.*; | |
PGraphics canvas; | |
Serial myPort; | |
int linefeed = 10; |
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
class Attractor extends AttractionBehavior { | |
Vec2D position; | |
float xNoise, yNoise, strengthNoise; | |
int behavior; | |
public Attractor(Vec2D _position, float _radius, float _strength, float _jitter, int _behavior) { | |
super(_position, _radius, _strength, _jitter); | |
position = _position; | |
xNoise = random(1000); |