hi there, in my code i have ellipses that travel accross the page, then when mouse is clicked rotate around my mouse point. however i also have a image that follows my mouse and i want that to stay still when i click. however i cannot find the right way to format my code so this does that, any ideas??
PImage bg;
PImage mi;
float tx = 0;
float ty = 0;
static final byte dotCount = 15;
static final byte speed = 11;
static final byte size = 20;
//
static float angle = 0;
//
static final int[] xn = new int [dotCount];
static final int[] yn = new int [dotCount];
static final byte[] sn = new byte[dotCount];
//
void setup() {
size(1000, 500);
frameRate(60);
smooth();
noStroke();
bg = loadImage("space.png");
mi = loadImage("mouse.png");
background(bg);
//
//loop that continusly puts random numbers into the 'boxes' in the arays. saves