// markers --------------------------------------------------------------------- class markers { int[][] m = new int[100][2]; int num; markers() { // set markers manually m[0][0] = 64; m[0][1] = 111; m[1][0] = 144; m[1][1] = 132; m[2][0] = 209; m[2][1] = 142; m[3][0] = 259; m[3][1] = 186; m[4][0] = 283; m[4][1] = 223; m[5][0] = 210; m[5][1] = 261; m[6][0] = 116; m[6][1] = 266; m[7][0] = 41; m[7][1] = 258; num = 8; } // render -------------------------------------------------------------------- void render() { // render markers for (int i=0; i imgmargin && _y < imgheight - imgmargin) { colorMode(HSB, 360); rectMode(CORNER); fill(convertHSB(count, img.length), 360, 360, 80); stroke(convertHSB(count, img.length), 360, 360, 80); pushMatrix(); translate(_x, _y, vimage.p[_x][_y].t + 4); box(8); textFont(univers, 10); fill(convertHSB(count, img.length), 360, 360); pushMatrix(); rotateX(-rxnum); text(int(img[count].imgColors[_x][_y]*(max-min)/255) + min + " dB", 10, 4); popMatrix(); popMatrix(); pushMatrix(); translate(0, 0, vimage.p[_x][_y].t + 4); noFill(); rect(0, 0, imgwidth, imgheight); popMatrix(); } } // splines ------------------------------------------------------------------- void splines() { colorMode(HSB, 360); stroke(convertHSB(count, img.length), 360, 360, 140); beginShape(LINE_STRIP); for (int i=0; i imgmargin && m[i][1] < imgheight - imgmargin) { vertex(m[i][0], m[i][1], vimage.p[m[i][0]][m[i][1]].t - 4); } } vertex(m[0][0], m[0][1], vimage.p[m[0][0]][m[0][1]].t - 4); endShape(); } }