18 theta =
new MutatingValue(-360f * ((
float) Math.random() * 30f + 1f), 360f * ((
float) Math.random() * 30f + 1f), 30f + 70f * (
float) Math.random());
19 radius =
new MutatingValue(0, 10f + 15f * (
float) Math.random(), 3f + 7f * (
float) Math.random());
98 GL11.glColor4ub((
byte) color.getRed(), (
byte) color.getGreen(),
102 GL11.glTranslatef(x, y, 0);
108 if (centerX != -1 && centerY != -1) {
109 GL11.glTranslatef(w / 2, h / 2, 0);
110 GL11.glRotatef(angle, 0, 0, 1);
111 GL11.glTranslatef(- centerX, - centerY, 0);
113 GL11.glTranslatef(w / 2, h / 2, 0);
114 GL11.glRotatef(angle, 0, 0, 1);
115 GL11.glTranslatef(-w / 2, -h / 2, 0);
120 GL11.glEnable(GL11.GL_TEXTURE_2D);
121 GL11.glEnable(GL11.GL_BLEND);
122 GL11.glBlendFunc(blendSrc, blendDest);
134 GL11.glBegin(GL11.GL_QUAD_STRIP);
139 float x2 = cw * (i + 1f);
144 float tx2 = ctw * (i + 1f);
153 float theta = (float) Math.toRadians(
vertices[(
int)i][(
int)j].theta.getValue());
154 float radius =
vertices[(int)i][(
int)j].radius.getValue();
155 float sin = (float) Math.sin(theta);
156 float cos = (float) Math.cos(theta);
164 float theta = (float) Math.toRadians(
vertices[(
int)i + 1][(
int)j].theta.getValue());
165 float radius =
vertices[(int)i + 1][(
int)j].radius.getValue();
166 float sin = (float) Math.sin(theta);
167 float cos = (float) Math.cos(theta);
174 GL11.glTexCoord2f(tx1, ty1);
175 GL11.glVertex2f(x1, y1);
177 GL11.glTexCoord2f(tx2, ty2);
178 GL11.glVertex2f(x2, y2);