00001 #include <GL/glut.h> 00002 #include <stdio.h> 00003 #include <stdlib.h> 00004 #include <time.h> 00005 00006 void square(float x, float y,float color, float times, float sx, float sy) 00007 { 00008 glPushMatrix(); 00009 00010 glBegin(GL_POLYGON); 00011 glColor3d((float) color, (float) color, (float) color); 00012 00013 glVertex2d(x*times+sx, y*times+sy); 00014 glVertex2d((x+0.2305)*times+sx, y*times+sy); 00015 glVertex2d((x+0.2305)*times+sx, (y+0.2305)*times+sy); 00016 glVertex2d(x*times+sx, (y+0.2315)*times+sy); 00017 glEnd(); 00018 00019 glBegin(GL_POLYGON); 00020 glColor3d((float) color, (float) color, (float) color); 00021 glVertex2d(x*times+sx, y*times+sy); 00022 glVertex2d((x+0.2305)*times+sx, y*times+sy); 00023 glVertex2d((x+0.2305)*times+sx, (y+0.2305)*times+sy); 00024 glVertex2d(x*times+sx, (y+0.2305)*times+sy); 00025 glEnd(); 00026 00027 glPopMatrix(); 00028 } 00029 00030 void edge_row(float x, float y,float color, float times, float sx, float sy) //sx,sy : center 00031 { 00032 glPushMatrix(); 00033 00034 glBegin(GL_POLYGON); 00035 glColor3d((float) color, (float) color, (float) color); 00036 00037 glVertex2d(x*times+sx, y*times+sy); 00038 glVertex2d((x+0.29)*times+sx, y*times+sy); 00039 glVertex2d((x+0.29)*times+sx, (y+0.08)*times+sy); 00040 glVertex2d(x*times+sx, (y+0.08)*times+sy); 00041 glEnd(); 00042 00043 glBegin(GL_POLYGON); 00044 glColor3d((float) color, (float) color, (float) color); 00045 glVertex2d(x*times+sx, y*times+sy); 00046 glVertex2d((x+0.29)*times+sx, y*times+sy); 00047 glVertex2d((x+0.29)*times+sx, (y+0.08)*times+sy); 00048 glVertex2d(x*times+sx, (y+0.08)*times+sy); 00049 glEnd(); 00050 00051 glPopMatrix(); 00052 } 00053 00054 void edge_col(float x, float y,float color, float times, float sx, float sy) 00055 { 00056 glPushMatrix(); 00057 00058 glBegin(GL_POLYGON); 00059 glColor3d((float) color, (float) color, (float) color); 00060 00061 glVertex2d(x*times+sx, y*times+sy); 00062 glVertex2d((x+0.08)*times+sx, y*times+sy); 00063 glVertex2d((x+0.08)*times+sx, (y+0.3)*times+sy); 00064 glVertex2d(x*times+sx, (y+0.3)*times+sy); 00065 glEnd(); 00066 00067 glBegin(GL_POLYGON); 00068 glColor3d((float) color, (float) color, (float) color); 00069 glVertex2d(x*times+sx, y*times+sy); 00070 glVertex2d((x+0.08)*times+sx, y*times+sy); 00071 glVertex2d((x+0.08)*times+sx, (y+0.3)*times+sy); 00072 glVertex2d(x*times+sx, (y+0.3)*times+sy); 00073 glEnd(); 00074 00075 glPopMatrix(); 00076 } 00077 00078 void blue_edge_row(float x, float y,float color, float times, float sx, float sy) //sx,sy : center 00079 /* BO right */ 00080 { 00081 glPushMatrix(); 00082 00083 glBegin(GL_POLYGON); 00084 glColor3d((float) 0.0, (float) 0.0, (float) color); 00085 00086 glVertex2d(x*times+sx, y*times+sy); 00087 glVertex2d((x+0.29)*times+sx, y*times+sy); 00088 glVertex2d((x+0.29)*times+sx, (y+0.08)*times+sy); 00089 glVertex2d(x*times+sx, (y+0.08)*times+sy); 00090 glEnd(); 00091 00092 glBegin(GL_POLYGON); 00093 glColor3d((float) 0.0, (float) 0.0, (float) color); 00094 glVertex2d(x*times+sx, y*times+sy); 00095 glVertex2d((x+0.29)*times+sx, y*times+sy); 00096 glVertex2d((x+0.29)*times+sx, (y+0.08)*times+sy); 00097 glVertex2d(x*times+sx, (y+0.08)*times+sy); 00098 glEnd(); 00099 00100 glPopMatrix(); 00101 } 00102 00103 void blue_edge_col(float x, float y,float color, float times, float sx, float sy) 00104 /* BO right */ 00105 { 00106 glPushMatrix(); 00107 00108 glBegin(GL_POLYGON); 00109 glColor3d((float) 0.0, (float) 0.0, (float) color); 00110 00111 glVertex2d(x*times+sx, y*times+sy); 00112 glVertex2d((x+0.08)*times+sx, y*times+sy); 00113 glVertex2d((x+0.08)*times+sx, (y+0.3)*times+sy); 00114 glVertex2d(x*times+sx, (y+0.3)*times+sy); 00115 glEnd(); 00116 00117 glBegin(GL_POLYGON); 00118 glColor3d((float) 0.0, (float) 0.0, (float) color); 00119 glVertex2d(x*times+sx, y*times+sy); 00120 glVertex2d((x+0.08)*times+sx, y*times+sy); 00121 glVertex2d((x+0.08)*times+sx, (y+0.3)*times+sy); 00122 glVertex2d(x*times+sx, (y+0.3)*times+sy); 00123 glEnd(); 00124 00125 glPopMatrix(); 00126 } 00127 00128 void red_edge_row(float x, float y,float color, float times, float sx, float sy) //sx,sy : center 00129 /* BO left */ 00130 { 00131 glPushMatrix(); 00132 00133 glBegin(GL_POLYGON); 00134 glColor3d((float) color, (float) 0.0, (float) 0.0); 00135 00136 glVertex2d(x*times+sx, y*times+sy); 00137 glVertex2d((x+0.29)*times+sx, y*times+sy); 00138 glVertex2d((x+0.29)*times+sx, (y+0.08)*times+sy); 00139 glVertex2d(x*times+sx, (y+0.08)*times+sy); 00140 glEnd(); 00141 00142 glBegin(GL_POLYGON); 00143 glColor3d((float) color, (float) 0.0, (float) 0.0); 00144 glVertex2d(x*times+sx, y*times+sy); 00145 glVertex2d((x+0.29)*times+sx, y*times+sy); 00146 glVertex2d((x+0.29)*times+sx, (y+0.08)*times+sy); 00147 glVertex2d(x*times+sx, (y+0.08)*times+sy); 00148 glEnd(); 00149 00150 glPopMatrix(); 00151 } 00152 00153 void red_edge_col(float x, float y,float color, float times, float sx, float sy) 00154 /* BO left */ 00155 { 00156 glPushMatrix(); 00157 00158 glBegin(GL_POLYGON); 00159 glColor3d((float) color, (float) 0.0, (float) 0.0); 00160 00161 glVertex2d(x*times+sx, y*times+sy); 00162 glVertex2d((x+0.08)*times+sx, y*times+sy); 00163 glVertex2d((x+0.08)*times+sx, (y+0.3)*times+sy); 00164 glVertex2d(x*times+sx, (y+0.3)*times+sy); 00165 glEnd(); 00166 00167 glBegin(GL_POLYGON); 00168 glColor3d((float) color, (float) 0.0, (float) 0.0); 00169 glVertex2d(x*times+sx, y*times+sy); 00170 glVertex2d((x+0.08)*times+sx, y*times+sy); 00171 glVertex2d((x+0.08)*times+sx, (y+0.3)*times+sy); 00172 glVertex2d(x*times+sx, (y+0.3)*times+sy); 00173 glEnd(); 00174 00175 glPopMatrix(); 00176 } 00177 00178 void draw_Square1(int type, float x, float y, float color, float times) //New Shape 00179 { 00180 switch(type){ 00181 case 0: //New shape is Right 00182 { 00183 square(-0.45,0.0,color,times,x,y); 00184 square(-0.225,0.0,color,times,x,y); 00185 square(0.0,0.0,color,times,x,y); 00186 square(0.225,0.0,color,times,x,y); 00187 square(0.45,0.0,color,times,x,y); 00188 square(0.675,0.0,color,times,x,y); 00189 00190 square(-0.45,0.225,color,times,x,y); 00191 square(-0.225,0.225,color,times,x,y); 00192 square(0.0,0.225,color,times,x,y); 00193 square(0.225,0.225,color,times,x,y); 00194 square(0.45,0.225,color,times,x,y); 00195 square(0.675,0.225,color,times,x,y); 00196 00197 square(-0.45,-0.225,color,times,x,y); 00198 square(-0.225,-0.225,color,times,x,y); 00199 square(0.0,-0.225,color,times,x,y); 00200 square(0.225,-0.225,color,times,x,y); 00201 square(0.45,-0.225,color,times,x,y); 00202 square(0.675,-0.225,color,times,x,y); 00203 00204 square(-0.45,-0.45,color,times,x,y); 00205 square(-0.225,-0.45,color,times,x,y); 00206 square(0.0,-0.45,color,times,x,y); 00207 square(0.225,-0.45,color,times,x,y); 00208 square(0.45,-0.45,color,times,x,y); 00209 square(0.675,-0.45,color,times,x,y); 00210 00211 square(-0.45,-0.675,color,times,x,y); 00212 square(-0.225,-0.675,color,times,x,y); 00213 square(0.0,-0.675,color,times,x,y); 00214 square(0.225,-0.675,color,times,x,y); 00215 square(0.45,-0.675,color,times,x,y); 00216 square(0.675,-0.675,color,times,x,y); 00217 00218 square(-0.45,-0.9,color,times,x,y); 00219 square(-0.225,-0.9,color,times,x,y); 00220 square(0.0,-0.9,color,times,x,y); 00221 square(0.225,-0.9,color,times,x,y); 00222 square(0.45,-0.9,color,times,x,y); 00223 square(0.675,-0.9,color,times,x,y); 00224 }break; 00225 case 1:{ //Nwe shape is Left 00226 square(0.225,0.0,color,times,x,y); 00227 square(0.0,0.0,color,times,x,y); 00228 square(-0.225,0.0,color,times,x,y); 00229 square(-0.45,0.0,color,times,x,y); 00230 square(-0.675,0.0,color,times,x,y); 00231 square(-0.9,0.0,color,times,x,y); 00232 00233 square(0.225,0.225,color,times,x,y); 00234 square(0.0,0.225,color,times,x,y); 00235 square(-0.225,0.225,color,times,x,y); 00236 square(-0.45,0.225,color,times,x,y); 00237 square(-0.675,0.225,color,times,x,y); 00238 square(-0.9,0.225,color,times,x,y); 00239 00240 square(0.225,-0.225,color,times,x,y); 00241 square(0.0,-0.225,color,times,x,y); 00242 square(-0.225,-0.225,color,times,x,y); 00243 square(-0.45,-0.225,color,times,x,y); 00244 square(-0.675,-0.225,color,times,x,y); 00245 square(-0.9,-0.225,color,times,x,y); 00246 00247 square(0.225,-0.45,color,times,x,y); 00248 square(0.0,-0.45,color,times,x,y); 00249 square(-0.225,-0.45,color,times,x,y); 00250 square(-0.45,-0.45,color,times,x,y); 00251 square(-0.675,-0.45,color,times,x,y); 00252 square(-0.9,-0.45,color,times,x,y); 00253 00254 square(0.225,-0.675,color,times,x,y); 00255 square(0.0,-0.675,color,times,x,y); 00256 square(-0.225,-0.675,color,times,x,y); 00257 square(-0.45,-0.675,color,times,x,y); 00258 square(-0.675,-0.675,color,times,x,y); 00259 square(-0.9,-0.675,color,times,x,y); 00260 00261 square(0.225,-0.9,color,times,x,y); 00262 square(0.0,-0.9,color,times,x,y); 00263 square(-0.225,-0.9,color,times,x,y); 00264 square(-0.45,-0.9,color,times,x,y); 00265 square(-0.675,-0.9,color,times,x,y); 00266 square(-0.9,-0.9,color,times,x,y); 00267 }break; 00268 case 2:{ //Reverse Newshape Right 00269 square(-0.45,-0.225,color,times,x,y); 00270 square(-0.225,-0.225,color,times,x,y); 00271 square(0.0,-0.225,color,times,x,y); 00272 square(0.225,-0.225,color,times,x,y); 00273 square(0.45,-0.225,color,times,x,y); 00274 square(0.675,-0.225,color,times,x,y); 00275 00276 square(-0.45,-0.45,color,times,x,y); 00277 square(-0.225,-0.45,color,times,x,y); 00278 square(0.0,-0.45,color,times,x,y); 00279 square(0.225,-0.45,color,times,x,y); 00280 square(0.45,-0.45,color,times,x,y); 00281 square(0.675,-0.45,color,times,x,y); 00282 00283 square(-0.45,0.0,color,times,x,y); 00284 square(-0.225,0.0,color,times,x,y); 00285 square(0.0,0.0,color,times,x,y); 00286 square(0.225,0.0,color,times,x,y); 00287 square(0.45,0.0,color,times,x,y); 00288 square(0.675,0.0,color,times,x,y); 00289 00290 square(-0.45,0.225,color,times,x,y); 00291 square(-0.225,0.225,color,times,x,y); 00292 square(0.0,0.225,color,times,x,y); 00293 square(0.225,0.225,color,times,x,y); 00294 square(0.45,0.225,color,times,x,y); 00295 square(0.675,0.225,color,times,x,y); 00296 00297 square(-0.45,0.45,color,times,x,y); 00298 square(-0.225,0.45,color,times,x,y); 00299 square(0.0,0.45,color,times,x,y); 00300 square(0.225,0.45,color,times,x,y); 00301 square(0.45,0.45,color,times,x,y); 00302 square(0.675,0.45,color,times,x,y); 00303 00304 square(-0.45,0.675,color,times,x,y); 00305 square(-0.225,0.675,color,times,x,y); 00306 square(0.0,0.675,color,times,x,y); 00307 square(0.225,0.675,color,times,x,y); 00308 square(0.45,0.675,color,times,x,y); 00309 square(0.675,0.675,color,times,x,y); 00310 }break; 00311 case 3:{ //Reverse Newshape Left 00312 square(0.225,-0.225,color,times,x,y); 00313 square(0.0,-0.225,color,times,x,y); 00314 square(-0.225,-0.225,color,times,x,y); 00315 square(-0.45,-0.225,color,times,x,y); 00316 square(-0.675,-0.225,color,times,x,y); 00317 square(-0.9,-0.225,color,times,x,y); 00318 00319 square(0.225,-0.45,color,times,x,y); 00320 square(0.0,-0.45,color,times,x,y); 00321 square(-0.225,-0.45,color,times,x,y); 00322 square(-0.45,-0.45,color,times,x,y); 00323 square(-0.675,-0.45,color,times,x,y); 00324 square(-0.9,-0.45,color,times,x,y); 00325 00326 square(0.225,0.0,color,times,x,y); 00327 square(0.0,0.0,color,times,x,y); 00328 square(-0.225,0.0,color,times,x,y); 00329 square(-0.45,0.0,color,times,x,y); 00330 square(-0.675,0.0,color,times,x,y); 00331 square(-0.9,0.0,color,times,x,y); 00332 00333 square(0.225,0.225,color,times,x,y); 00334 square(0.0,0.225,color,times,x,y); 00335 square(-0.225,0.225,color,times,x,y); 00336 square(-0.45,0.225,color,times,x,y); 00337 square(-0.675,0.225,color,times,x,y); 00338 square(-0.9,0.225,color,times,x,y); 00339 00340 square(0.225,0.45,color,times,x,y); 00341 square(0.0,0.45,color,times,x,y); 00342 square(-0.225,0.45,color,times,x,y); 00343 square(-0.45,0.45,color,times,x,y); 00344 square(-0.675,0.45,color,times,x,y); 00345 square(-0.9,0.45,color,times,x,y); 00346 00347 square(0.225,0.675,color,times,x,y); 00348 square(0.0,0.675,color,times,x,y); 00349 square(-0.225,0.675,color,times,x,y); 00350 square(-0.45,0.675,color,times,x,y); 00351 square(-0.675,0.675,color,times,x,y); 00352 square(-0.9,0.675,color,times,x,y); 00353 }break; 00354 } 00355 00356 } 00357 00358 void draw_Square2(int type, float x, float y, float color, float times) //New Shape 00359 { 00360 switch(type){ 00361 case 0: //New shape is Right 00362 { 00363 square(-0.9,0.675,color,times,x,y); 00364 square(-0.675,0.675,color,times,x,y); 00365 square(-0.45,0.675,color,times,x,y); 00366 square(-0.225,0.675,color,times,x,y); 00367 square(0.0,0.675,color,times,x,y); 00368 square(0.225,0.675,color,times,x,y); 00369 00370 square(-0.9,0.45,color,times,x,y); 00371 square(-0.675,0.45,color,times,x,y); 00372 square(-0.45,0.45,color,times,x,y); 00373 square(-0.225,0.45,color,times,x,y); 00374 square(0.0,0.45,color,times,x,y); 00375 square(0.225,0.45,color,times,x,y); 00376 00377 square(-0.9,0.225,color,times,x,y); 00378 square(-0.675,0.225,color,times,x,y); 00379 square(-0.45,0.225,color,times,x,y); 00380 square(-0.225,0.225,color,times,x,y); 00381 square(0.0,0.225,color,times,x,y); 00382 square(0.225,0.225,color,times,x,y); 00383 00384 square(-0.9,0.0,color,times,x,y); 00385 square(-0.675,0.0,color,times,x,y); 00386 square(-0.45,0.0,color,times,x,y); 00387 square(-0.225,0.0,color,times,x,y); 00388 square(0.0,0.0,color,times,x,y); 00389 square(0.225,0.0,color,times,x,y); 00390 00391 square(-0.9,-0.225,color,times,x,y); 00392 square(-0.675,-0.225,color,times,x,y); 00393 square(-0.45,-0.225,color,times,x,y); 00394 square(-0.225,-0.225,color,times,x,y); 00395 square(0.0,-0.225,color,times,x,y); 00396 square(0.225,-0.225,color,times,x,y); 00397 00398 square(-0.9,-0.45,color,times,x,y); 00399 square(-0.675,-0.45,color,times,x,y); 00400 square(-0.45,-0.45,color,times,x,y); 00401 square(-0.225,-0.45,color,times,x,y); 00402 square(0.0,-0.45,color,times,x,y); 00403 square(0.225,-0.45,color,times,x,y); 00404 }break; 00405 case 1:{ //Nwe shape is Left 00406 square(0.675,0.675,color,times,x,y); 00407 square(0.45,0.675,color,times,x,y); 00408 square(0.225,0.675,color,times,x,y); 00409 square(0.0,0.675,color,times,x,y); 00410 square(-0.225,0.675,color,times,x,y); 00411 square(-0.45,0.675,color,times,x,y); 00412 00413 square(0.675,0.45,color,times,x,y); 00414 square(0.45,0.45,color,times,x,y); 00415 square(0.225,0.45,color,times,x,y); 00416 square(0.0,0.45,color,times,x,y); 00417 square(-0.225,0.45,color,times,x,y); 00418 square(-0.45,0.45,color,times,x,y); 00419 00420 square(0.675,0.225,color,times,x,y); 00421 square(0.45,0.225,color,times,x,y); 00422 square(0.225,0.225,color,times,x,y); 00423 square(0.0,0.225,color,times,x,y); 00424 square(-0.225,0.225,color,times,x,y); 00425 square(-0.45,0.225,color,times,x,y); 00426 00427 square(0.675,0.0,color,times,x,y); 00428 square(0.45,0.0,color,times,x,y); 00429 square(0.225,0.0,color,times,x,y); 00430 square(0.0,0.0,color,times,x,y); 00431 square(-0.225,0.0,color,times,x,y); 00432 square(-0.45,0.0,color,times,x,y); 00433 00434 square(0.675,-0.225,color,times,x,y); 00435 square(0.45,-0.225,color,times,x,y); 00436 square(0.225,-0.225,color,times,x,y); 00437 square(0.0,-0.225,color,times,x,y); 00438 square(-0.225,-0.225,color,times,x,y); 00439 square(-0.45,-0.225,color,times,x,y); 00440 00441 square(0.675,-0.45,color,times,x,y); 00442 square(0.45,-0.45,color,times,x,y); 00443 square(0.225,-0.45,color,times,x,y); 00444 square(0.0,-0.45,color,times,x,y); 00445 square(-0.225,-0.45,color,times,x,y); 00446 square(-0.45,-0.45,color,times,x,y); 00447 }break; 00448 case 2:{ //Reverse Newshape Right 00449 square(-0.9,-0.9,color,times,x,y); 00450 square(-0.675,-0.9,color,times,x,y); 00451 square(-0.45,-0.9,color,times,x,y); 00452 square(-0.225,-0.9,color,times,x,y); 00453 square(0.0,-0.9,color,times,x,y); 00454 square(0.225,-0.9,color,times,x,y); 00455 00456 square(-0.9,-0.675,color,times,x,y); 00457 square(-0.675,-0.675,color,times,x,y); 00458 square(-0.45,-0.675,color,times,x,y); 00459 square(-0.225,-0.675,color,times,x,y); 00460 square(0.0,-0.675,color,times,x,y); 00461 square(0.225,-0.675,color,times,x,y); 00462 00463 square(-0.9,-0.45,color,times,x,y); 00464 square(-0.675,-0.45,color,times,x,y); 00465 square(-0.45,-0.45,color,times,x,y); 00466 square(-0.225,-0.45,color,times,x,y); 00467 square(0.0,-0.45,color,times,x,y); 00468 square(0.225,-0.45,color,times,x,y); 00469 00470 square(-0.9,-0.225,color,times,x,y); 00471 square(-0.675,-0.225,color,times,x,y); 00472 square(-0.45,-0.225,color,times,x,y); 00473 square(-0.225,-0.225,color,times,x,y); 00474 square(0.0,-0.225,color,times,x,y); 00475 square(0.225,-0.225,color,times,x,y); 00476 00477 square(-0.9,0.0,color,times,x,y); 00478 square(-0.675,0.0,color,times,x,y); 00479 square(-0.45,0.0,color,times,x,y); 00480 square(-0.225,0.0,color,times,x,y); 00481 square(0.0,0.0,color,times,x,y); 00482 square(0.225,0.0,color,times,x,y); 00483 00484 square(-0.9,0.225,color,times,x,y); 00485 square(-0.675,0.225,color,times,x,y); 00486 square(-0.45,0.225,color,times,x,y); 00487 square(-0.225,0.225,color,times,x,y); 00488 square(0.0,0.225,color,times,x,y); 00489 square(0.225,0.225,color,times,x,y); 00490 }break; 00491 case 3:{ //Reverse Newshape Left 00492 square(0.675,-0.9,color,times,x,y); 00493 square(0.45,-0.9,color,times,x,y); 00494 square(0.225,-0.9,color,times,x,y); 00495 square(0.0,-0.9,color,times,x,y); 00496 square(-0.225,-0.9,color,times,x,y); 00497 square(-0.45,-0.9,color,times,x,y); 00498 00499 square(0.675,-0.675,color,times,x,y); 00500 square(0.45,-0.675,color,times,x,y); 00501 square(0.225,-0.675,color,times,x,y); 00502 square(0.0,-0.675,color,times,x,y); 00503 square(-0.225,-0.675,color,times,x,y); 00504 square(-0.45,-0.675,color,times,x,y); 00505 00506 square(0.675,-0.45,color,times,x,y); 00507 square(0.45,-0.45,color,times,x,y); 00508 square(0.225,-0.45,color,times,x,y); 00509 square(0.0,-0.45,color,times,x,y); 00510 square(-0.225,-0.45,color,times,x,y); 00511 square(-0.45,-0.45,color,times,x,y); 00512 00513 square(0.675,-0.225,color,times,x,y); 00514 square(0.45,-0.225,color,times,x,y); 00515 square(0.225,-0.225,color,times,x,y); 00516 square(0.0,-0.225,color,times,x,y); 00517 square(-0.225,-0.225,color,times,x,y); 00518 square(-0.45,-0.225,color,times,x,y); 00519 00520 square(0.675,0.0,color,times,x,y); 00521 square(0.45,0.0,color,times,x,y); 00522 square(0.225,0.0,color,times,x,y); 00523 square(0.0,0.0,color,times,x,y); 00524 square(-0.225,0.0,color,times,x,y); 00525 square(-0.45,0.0,color,times,x,y); 00526 00527 square(0.675,0.225,color,times,x,y); 00528 square(0.45,0.225,color,times,x,y); 00529 square(0.225,0.225,color,times,x,y); 00530 square(0.0,0.225,color,times,x,y); 00531 square(-0.225,0.225,color,times,x,y); 00532 square(-0.45,0.225,color,times,x,y); 00533 }break; 00534 } 00535 00536 } 00537 00538 00539 void draw_New1(int type, float x, float y, float color, float times) //New Shape 00540 { 00541 switch (type){ 00542 case 0: 00543 { 00544 square(-0.45,0.225,color,times,x,y); 00545 square(-0.225,0.225,color,times,x,y); 00546 square(0.0,0.225,color,times,x,y); 00547 square(0.225,0.225,color,times,x,y); 00548 square(0.45,0.225,color,times,x,y); 00549 00550 square(0.225,0.45,color,times,x,y); 00551 square(0.45,0.45,color,times,x,y); 00552 00553 square(-0.45,0.0,color,times,x,y); 00554 square(-0.225,-0.0,color,times,x,y); 00555 square(0.0,-0.0,color,times,x,y); 00556 square(0.225,-0.0,color,times,x,y); 00557 square(0.45,-0.0,color,times,x,y); 00558 00559 square(-0.45,-0.225,color,times,x,y); 00560 square(-0.225,-0.225,color,times,x,y); 00561 square(0.0,-0.225,color,times,x,y); 00562 square(0.225,-0.225,color,times,x,y); 00563 square(0.45,-0.225,color,times,x,y); 00564 00565 square(-0.675,-0.45,color,times,x,y); 00566 square(-0.45,-0.45,color,times,x,y); 00567 square(-0.225,-0.45,color,times,x,y); 00568 square(0.0,-0.45,color,times,x,y); 00569 square(0.225,-0.45,color,times,x,y); 00570 square(0.45,-0.45,color,times,x,y); 00571 00572 square(-0.675,-0.675,color,times,x,y); 00573 square(-0.45,-0.675,color,times,x,y); 00574 square(-0.225,-0.675,color,times,x,y); 00575 square(0.0,-0.675,color,times,x,y); 00576 square(0.225,-0.675,color,times,x,y); 00577 square(0.45,-0.675,color,times,x,y); 00578 }break; 00579 case 1: 00580 { 00581 square(0.225,0.225,color,times,x,y); 00582 square(0.0,0.225,color,times,x,y); 00583 square(-0.225,0.225,color,times,x,y); 00584 square(-0.45,0.225,color,times,x,y); 00585 square(-0.675,0.225,color,times,x,y); 00586 00587 square(-0.45,0.45,color,times,x,y); 00588 square(-0.675,0.45,color,times,x,y); 00589 00590 square(0.225,0.0,color,times,x,y); 00591 square(0.0,-0.0,color,times,x,y); 00592 square(-0.225,-0.0,color,times,x,y); 00593 square(-0.45,-0.0,color,times,x,y); 00594 square(-0.675,-0.0,color,times,x,y); 00595 00596 square(0.225,-0.225,color,times,x,y); 00597 square(0.0,-0.225,color,times,x,y); 00598 square(-0.225,-0.225,color,times,x,y); 00599 square(-0.45,-0.225,color,times,x,y); 00600 square(-0.675,-0.225,color,times,x,y); 00601 00602 square(0.45,-0.45,color,times,x,y); 00603 square(0.225,-0.45,color,times,x,y); 00604 square(0.0,-0.45,color,times,x,y); 00605 square(-0.225,-0.45,color,times,x,y); 00606 square(-0.45,-0.45,color,times,x,y); 00607 square(-0.675,-0.45,color,times,x,y); 00608 00609 square(0.45,-0.675,color,times,x,y); 00610 square(0.225,-0.675,color,times,x,y); 00611 square(0.0,-0.675,color,times,x,y); 00612 square(-0.225,-0.675,color,times,x,y); 00613 square(-0.45,-0.675,color,times,x,y); 00614 square(-0.675,-0.675,color,times,x,y); 00615 }break; 00616 case 2:{ // Reverse New shape Right 00617 square(-0.45,-0.45,color,times,x,y); 00618 square(-0.225,-0.45,color,times,x,y); 00619 square(0.0,-0.45,color,times,x,y); 00620 square(0.225,-0.45,color,times,x,y); 00621 square(0.45,-0.45,color,times,x,y); 00622 00623 square(0.225,-0.675,color,times,x,y); 00624 square(0.45,-0.675,color,times,x,y); 00625 00626 square(-0.45,-0.225,color,times,x,y); 00627 square(-0.225,-0.225,color,times,x,y); 00628 square(0.0,-0.225,color,times,x,y); 00629 square(0.225,-0.225,color,times,x,y); 00630 square(0.45,-0.225,color,times,x,y); 00631 00632 square(-0.45,0.0,color,times,x,y); 00633 square(-0.225,0.0,color,times,x,y); 00634 square(0.0,0.0,color,times,x,y); 00635 square(0.225,0.0,color,times,x,y); 00636 square(0.45,0.0,color,times,x,y); 00637 00638 square(-0.675,0.225,color,times,x,y); 00639 square(-0.45,0.225,color,times,x,y); 00640 square(-0.225,0.225,color,times,x,y); 00641 square(0.0,0.225,color,times,x,y); 00642 square(0.225,0.225,color,times,x,y); 00643 square(0.45,0.225,color,times,x,y); 00644 00645 square(-0.675,0.45,color,times,x,y); 00646 square(-0.45,0.45,color,times,x,y); 00647 square(-0.225,0.45,color,times,x,y); 00648 square(0.0,0.45,color,times,x,y); 00649 square(0.225,0.45,color,times,x,y); 00650 square(0.45,0.45,color,times,x,y); 00651 }break; 00652 case 3:{ //Reverse New shape Left 00653 square(0.225,-0.45,color,times,x,y); 00654 square(0.0,-0.45,color,times,x,y); 00655 square(-0.225,-0.45,color,times,x,y); 00656 square(-0.45,-0.45,color,times,x,y); 00657 square(-0.675,-0.45,color,times,x,y); 00658 00659 square(-0.45,-0.675,color,times,x,y); 00660 square(-0.675,-0.675,color,times,x,y); 00661 00662 square(0.225,-0.225,color,times,x,y); 00663 square(0.0,-0.225,color,times,x,y); 00664 square(-0.225,-0.225,color,times,x,y); 00665 square(-0.45,-0.225,color,times,x,y); 00666 square(-0.675,-0.225,color,times,x,y); 00667 00668 square(0.225,0.0,color,times,x,y); 00669 square(0.0,0.0,color,times,x,y); 00670 square(-0.225,0.0,color,times,x,y); 00671 square(-0.45,0.0,color,times,x,y); 00672 square(-0.675,0.0,color,times,x,y); 00673 00674 square(0.45,0.225,color,times,x,y); 00675 square(0.225,0.225,color,times,x,y); 00676 square(0.0,0.225,color,times,x,y); 00677 square(-0.225,0.225,color,times,x,y); 00678 square(-0.45,0.225,color,times,x,y); 00679 square(-0.675,0.225,color,times,x,y); 00680 00681 square(0.45,0.45,color,times,x,y); 00682 square(0.225,0.45,color,times,x,y); 00683 square(0.0,0.45,color,times,x,y); 00684 square(-0.225,0.45,color,times,x,y); 00685 square(-0.45,0.45,color,times,x,y); 00686 square(-0.675,0.45,color,times,x,y); 00687 }break; 00688 } 00689 } 00690 00691 void draw_New2(int type, float x, float y, float color, float times) //New Shape 00692 { 00693 switch (type){ 00694 case 0: 00695 { 00696 square(-0.9,0.675,color,times,x,y); 00697 square(-0.675,0.675,color,times,x,y); 00698 00699 square(-0.9,0.45,color,times,x,y); 00700 square(-0.675,0.45,color,times,x,y); 00701 square(-0.45,0.45,color,times,x,y); 00702 square(-0.225,0.45,color,times,x,y); 00703 square(0.0,0.45,color,times,x,y); 00704 00705 square(-0.9,0.225,color,times,x,y); 00706 square(-0.675,0.225,color,times,x,y); 00707 square(-0.45,0.225,color,times,x,y); 00708 square(-0.225,0.225,color,times,x,y); 00709 square(0.0,0.225,color,times,x,y); 00710 00711 square(-0.9,0.0,color,times,x,y); 00712 square(-0.675,0.0,color,times,x,y); 00713 square(-0.45,0.0,color,times,x,y); 00714 square(-0.225,0.0,color,times,x,y); 00715 square(0.0,0.0,color,times,x,y); 00716 00717 square(-0.9,-0.225,color,times,x,y); 00718 square(-0.675,-0.225,color,times,x,y); 00719 square(-0.45,-0.225,color,times,x,y); 00720 square(-0.225,-0.225,color,times,x,y); 00721 square(0.0,-0.225,color,times,x,y); 00722 square(0.225,-0.225,color,times,x,y); 00723 00724 square(-0.9,-0.45,color,times,x,y); 00725 square(-0.675,-0.45,color,times,x,y); 00726 square(-0.45,-0.45,color,times,x,y); 00727 square(-0.225,-0.45,color,times,x,y); 00728 square(0.0,-0.45,color,times,x,y); 00729 square(0.225,-0.45,color,times,x,y); 00730 }break; 00731 case 1: 00732 { 00733 square(0.675,0.675,color,times,x,y); 00734 square(0.45,0.675,color,times,x,y); 00735 00736 square(0.675,0.45,color,times,x,y); 00737 square(0.45,0.45,color,times,x,y); 00738 square(0.225,0.45,color,times,x,y); 00739 square(0.0,0.45,color,times,x,y); 00740 square(-0.225,0.45,color,times,x,y); 00741 00742 square(0.675,0.225,color,times,x,y); 00743 square(0.45,0.225,color,times,x,y); 00744 square(0.225,0.225,color,times,x,y); 00745 square(0.0,0.225,color,times,x,y); 00746 square(-0.225,0.225,color,times,x,y); 00747 00748 square(0.675,0.0,color,times,x,y); 00749 square(0.45,0.0,color,times,x,y); 00750 square(0.225,0.0,color,times,x,y); 00751 square(0.0,0.0,color,times,x,y); 00752 square(-0.225,0.0,color,times,x,y); 00753 00754 square(0.675,-0.225,color,times,x,y); 00755 square(0.45,-0.225,color,times,x,y); 00756 square(0.225,-0.225,color,times,x,y); 00757 square(0.0,-0.225,color,times,x,y); 00758 square(-0.225,-0.225,color,times,x,y); 00759 square(-0.45,-0.225,color,times,x,y); 00760 00761 square(0.675,-0.45,color,times,x,y); 00762 square(0.45,-0.45,color,times,x,y); 00763 square(0.225,-0.45,color,times,x,y); 00764 square(0.0,-0.45,color,times,x,y); 00765 square(-0.225,-0.45,color,times,x,y); 00766 square(-0.45,-0.45,color,times,x,y); 00767 }break; 00768 case 2:{ // Reverse New shape Right 00769 square(-0.9,-0.9,color,times,x,y); 00770 square(-0.675,-0.9,color,times,x,y); 00771 00772 square(-0.9,-0.675,color,times,x,y); 00773 square(-0.675,-0.675,color,times,x,y); 00774 square(-0.45,-0.675,color,times,x,y); 00775 square(-0.225,-0.675,color,times,x,y); 00776 square(0.0,-0.675,color,times,x,y); 00777 00778 square(-0.9,-0.45,color,times,x,y); 00779 square(-0.675,-0.45,color,times,x,y); 00780 square(-0.45,-0.45,color,times,x,y); 00781 square(-0.225,-0.45,color,times,x,y); 00782 square(0.0,-0.45,color,times,x,y); 00783 00784 square(-0.9,-0.225,color,times,x,y); 00785 square(-0.675,-0.225,color,times,x,y); 00786 square(-0.45,-0.225,color,times,x,y); 00787 square(-0.225,-0.225,color,times,x,y); 00788 square(0.0,-0.225,color,times,x,y); 00789 00790 square(-0.9,0.0,color,times,x,y); 00791 square(-0.675,0.0,color,times,x,y); 00792 square(-0.45,0.0,color,times,x,y); 00793 square(-0.225,0.0,color,times,x,y); 00794 square(0.0,0.0,color,times,x,y); 00795 square(0.225,0.0,color,times,x,y); 00796 00797 square(-0.9,0.225,color,times,x,y); 00798 square(-0.675,0.225,color,times,x,y); 00799 square(-0.45,0.225,color,times,x,y); 00800 square(-0.225,0.225,color,times,x,y); 00801 square(0.0,0.225,color,times,x,y); 00802 square(0.225,0.225,color,times,x,y); 00803 }break; 00804 case 3:{ //Reverse New shape Left 00805 square(0.675,-0.9,color,times,x,y); 00806 square(0.45,-0.9,color,times,x,y); 00807 00808 square(0.675,-0.675,color,times,x,y); 00809 square(0.45,-0.675,color,times,x,y); 00810 square(0.225,-0.675,color,times,x,y); 00811 square(0.0,-0.675,color,times,x,y); 00812 square(-0.225,-0.675,color,times,x,y); 00813 00814 square(0.675,-0.45,color,times,x,y); 00815 square(0.45,-0.45,color,times,x,y); 00816 square(0.225,-0.45,color,times,x,y); 00817 square(0.0,-0.45,color,times,x,y); 00818 square(-0.225,-0.45,color,times,x,y); 00819 00820 square(0.675,-0.225,color,times,x,y); 00821 square(0.45,-0.225,color,times,x,y); 00822 square(0.225,-0.225,color,times,x,y); 00823 square(0.0,-0.225,color,times,x,y); 00824 square(-0.225,-0.225,color,times,x,y); 00825 00826 square(0.675,0.0,color,times,x,y); 00827 square(0.45,0.0,color,times,x,y); 00828 square(0.225,0.0,color,times,x,y); 00829 square(0.0,0.0,color,times,x,y); 00830 square(-0.225,0.0,color,times,x,y); 00831 square(-0.45,0.0,color,times,x,y); 00832 00833 square(0.675,0.225,color,times,x,y); 00834 square(0.45,0.225,color,times,x,y); 00835 square(0.225,0.225,color,times,x,y); 00836 square(0.0,0.225,color,times,x,y); 00837 square(-0.225,0.225,color,times,x,y); 00838 square(-0.45,0.225,color,times,x,y); 00839 }break; 00840 } 00841 } 00842 00843 void draw_New3(int type, float x, float y, float color, float times) //New Shape 00844 { 00845 switch (type){ 00846 case 0: 00847 { 00848 square(-0.45,0.225,color,times,x,y); 00849 square(-0.225,0.225,color,times,x,y); 00850 square(0.0,0.225,color,times,x,y); 00851 square(0.225,0.225,color,times,x,y); 00852 square(0.45,0.225,color,times,x,y); 00853 square(0.675,0.225,color,times,x,y); 00854 00855 square(-0.45,0.0,color,times,x,y); 00856 square(-0.225,0.0,color,times,x,y); 00857 square(0.0,0.0,color,times,x,y); 00858 square(0.225,0.0,color,times,x,y); 00859 square(0.45,0.0,color,times,x,y); 00860 square(0.675,0.0,color,times,x,y); 00861 00862 square(-0.225,-0.225,color,times,x,y); 00863 square(0.0,-0.225,color,times,x,y); 00864 square(0.225,-0.225,color,times,x,y); 00865 square(0.45,-0.225,color,times,x,y); 00866 square(0.675,-0.225,color,times,x,y); 00867 00868 square(-0.225,-0.45,color,times,x,y); 00869 square(0.0,-0.45,color,times,x,y); 00870 square(0.225,-0.45,color,times,x,y); 00871 square(0.45,-0.45,color,times,x,y); 00872 square(0.675,-0.45,color,times,x,y); 00873 00874 square(-0.225,-0.675,color,times,x,y); 00875 square(0.0,-0.675,color,times,x,y); 00876 square(0.225,-0.675,color,times,x,y); 00877 square(0.45,-0.675,color,times,x,y); 00878 square(0.675,-0.675,color,times,x,y); 00879 00880 square(0.45,-0.9,color,times,x,y); 00881 square(0.675,-0.9,color,times,x,y); 00882 }break; 00883 case 1: 00884 { 00885 square(0.225,0.225,color,times,x,y); 00886 square(0.0,0.225,color,times,x,y); 00887 square(-0.225,0.225,color,times,x,y); 00888 square(-0.45,0.225,color,times,x,y); 00889 square(-0.675,0.225,color,times,x,y); 00890 square(-0.9,0.225,color,times,x,y); 00891 00892 square(0.225,0.0,color,times,x,y); 00893 square(0.0,0.0,color,times,x,y); 00894 square(-0.225,0.0,color,times,x,y); 00895 square(-0.45,0.0,color,times,x,y); 00896 square(-0.675,0.0,color,times,x,y); 00897 square(-0.9,0.0,color,times,x,y); 00898 00899 square(0.0,-0.225,color,times,x,y); 00900 square(-0.225,-0.225,color,times,x,y); 00901 square(-0.45,-0.225,color,times,x,y); 00902 square(-0.675,-0.225,color,times,x,y); 00903 square(-0.9,-0.225,color,times,x,y); 00904 00905 square(0.0,-0.45,color,times,x,y); 00906 square(-0.225,-0.45,color,times,x,y); 00907 square(-0.45,-0.45,color,times,x,y); 00908 square(-0.675,-0.45,color,times,x,y); 00909 square(-0.9,-0.45,color,times,x,y); 00910 00911 square(0.0,-0.675,color,times,x,y); 00912 square(-0.225,-0.675,color,times,x,y); 00913 square(-0.45,-0.675,color,times,x,y); 00914 square(-0.675,-0.675,color,times,x,y); 00915 square(-0.9,-0.675,color,times,x,y); 00916 00917 square(-0.675,-0.9,color,times,x,y); 00918 square(-0.9,-0.9,color,times,x,y); 00919 }break; 00920 case 2:{ // Reverse New shape Right 00921 square(-0.45,-0.45,color,times,x,y); 00922 square(-0.225,-0.45,color,times,x,y); 00923 square(0.0,-0.45,color,times,x,y); 00924 square(0.225,-0.45,color,times,x,y); 00925 square(0.45,-0.45,color,times,x,y); 00926 square(0.675,-0.45,color,times,x,y); 00927 00928 square(-0.45,-0.225,color,times,x,y); 00929 square(-0.225,-0.225,color,times,x,y); 00930 square(0.0,-0.225,color,times,x,y); 00931 square(0.225,-0.225,color,times,x,y); 00932 square(0.45,-0.225,color,times,x,y); 00933 square(0.675,-0.225,color,times,x,y); 00934 00935 square(-0.225,0.0,color,times,x,y); 00936 square(0.0,0.0,color,times,x,y); 00937 square(0.225,0.0,color,times,x,y); 00938 square(0.45,0.0,color,times,x,y); 00939 square(0.675,0.0,color,times,x,y); 00940 00941 square(-0.225,0.225,color,times,x,y); 00942 square(0.0,0.225,color,times,x,y); 00943 square(0.225,0.225,color,times,x,y); 00944 square(0.45,0.225,color,times,x,y); 00945 square(0.675,0.225,color,times,x,y); 00946 00947 square(-0.225,0.45,color,times,x,y); 00948 square(0.0,0.45,color,times,x,y); 00949 square(0.225,0.45,color,times,x,y); 00950 square(0.45,0.45,color,times,x,y); 00951 square(0.675,0.45,color,times,x,y); 00952 00953 square(0.45,0.675,color,times,x,y); 00954 square(0.675,0.675,color,times,x,y); 00955 }break; 00956 case 3:{ //Reverse New shape Left 00957 square(0.225,-0.45,color,times,x,y); 00958 square(0.0,-0.45,color,times,x,y); 00959 square(-0.225,-0.45,color,times,x,y); 00960 square(-0.45,-0.45,color,times,x,y); 00961 square(-0.675,-0.45,color,times,x,y); 00962 square(-0.9,-0.45,color,times,x,y); 00963 00964 square(0.225,-0.225,color,times,x,y); 00965 square(0.0,-0.225,color,times,x,y); 00966 square(-0.225,-0.225,color,times,x,y); 00967 square(-0.45,-0.225,color,times,x,y); 00968 square(-0.675,-0.225,color,times,x,y); 00969 square(-0.9,-0.225,color,times,x,y); 00970 00971 square(0.0,0.0,color,times,x,y); 00972 square(-0.225,0.0,color,times,x,y); 00973 square(-0.45,0.0,color,times,x,y); 00974 square(-0.675,0.0,color,times,x,y); 00975 square(-0.9,0.0,color,times,x,y); 00976 00977 square(0.0,0.225,color,times,x,y); 00978 square(-0.225,0.225,color,times,x,y); 00979 square(-0.45,0.225,color,times,x,y); 00980 square(-0.675,0.225,color,times,x,y); 00981 square(-0.9,0.225,color,times,x,y); 00982 00983 square(0.0,0.45,color,times,x,y); 00984 square(-0.225,0.45,color,times,x,y); 00985 square(-0.45,0.45,color,times,x,y); 00986 square(-0.675,0.45,color,times,x,y); 00987 square(-0.9,0.45,color,times,x,y); 00988 00989 square(-0.675,0.675,color,times,x,y); 00990 square(-0.9,0.675,color,times,x,y); 00991 }break; 00992 } 00993 } 00994 00995 void draw_L1(int type, float x, float y, float color, float times) //L shape 00996 { 00997 switch (type){ //L shape is Left 00998 case 0: 00999 { 01000 square(-0.9,0.675,color,times,x,y); 01001 square(-0.675,0.675,color,times,x,y); 01002 square(-0.45,0.675,color,times,x,y); 01003 square(-0.225,0.675,color,times,x,y); 01004 square(0.0,0.675,color,times,x,y); 01005 square(0.225,0.675,color,times,x,y); 01006 01007 square(-0.9,0.45,color,times,x,y); 01008 square(-0.675,0.45,color,times,x,y); 01009 square(-0.45,0.45,color,times,x,y); 01010 square(-0.225,0.45,color,times,x,y); 01011 square(0.0,0.45,color,times,x,y); 01012 square(0.225,0.45,color,times,x,y); 01013 01014 square(-0.9,0.225,color,times,x,y); 01015 square(-0.675,0.225,color,times,x,y); 01016 square(-0.45,0.225,color,times,x,y); 01017 square(-0.225,0.225,color,times,x,y); 01018 square(0.0,0.225,color,times,x,y); 01019 square(0.225,0.225,color,times,x,y); 01020 01021 square(-0.9,0.0,color,times,x,y); 01022 square(-0.675,0.0,color,times,x,y); 01023 square(-0.45,0.0,color,times,x,y); 01024 01025 square(-0.9,-0.225,color,times,x,y); 01026 square(-0.675,-0.225,color,times,x,y); 01027 square(-0.45,-0.225,color,times,x,y); 01028 01029 square(-0.9,-0.45,color,times,x,y); 01030 square(-0.675,-0.45,color,times,x,y); 01031 square(-0.45,-0.45,color,times,x,y); 01032 }break; 01033 case 1:{ //L shape is Right 01034 square(0.675,0.675,color,times,x,y); 01035 square(0.45,0.675,color,times,x,y); 01036 square(0.225,0.675,color,times,x,y); 01037 square(0.0,0.675,color,times,x,y); 01038 square(-0.225,0.675,color,times,x,y); 01039 square(-0.45,0.675,color,times,x,y); 01040 01041 square(0.675,0.45,color,times,x,y); 01042 square(0.45,0.45,color,times,x,y); 01043 square(0.225,0.45,color,times,x,y); 01044 square(0.0,0.45,color,times,x,y); 01045 square(-0.225,0.45,color,times,x,y); 01046 square(-0.45,0.45,color,times,x,y); 01047 01048 square(0.675,0.225,color,times,x,y); 01049 square(0.45,0.225,color,times,x,y); 01050 square(0.225,0.225,color,times,x,y); 01051 square(0.0,0.225,color,times,x,y); 01052 square(-0.225,0.225,color,times,x,y); 01053 square(-0.45,0.225,color,times,x,y); 01054 01055 square(0.675,0.0,color,times,x,y); 01056 square(0.45,0.0,color,times,x,y); 01057 square(0.225,0.0,color,times,x,y); 01058 01059 square(0.675,-0.225,color,times,x,y); 01060 square(0.45,-0.225,color,times,x,y); 01061 square(0.225,-0.225,color,times,x,y); 01062 01063 square(0.675,-0.45,color,times,x,y); 01064 square(0.45,-0.45,color,times,x,y); 01065 square(0.225,-0.45,color,times,x,y); 01066 }break; 01067 case 2: // Reverse L Shape Left 01068 { 01069 square(-0.9,-0.9,color,times,x,y); 01070 square(-0.675,-0.9,color,times,x,y); 01071 square(-0.45,-0.9,color,times,x,y); 01072 square(-0.225,-0.9,color,times,x,y); 01073 square(0.0,-0.9,color,times,x,y); 01074 square(0.225,-0.9,color,times,x,y); 01075 01076 square(-0.9,-0.675,color,times,x,y); 01077 square(-0.675,-0.675,color,times,x,y); 01078 square(-0.45,-0.675,color,times,x,y); 01079 square(-0.225,-0.675,color,times,x,y); 01080 square(0.0,-0.675,color,times,x,y); 01081 square(0.225,-0.675,color,times,x,y); 01082 01083 square(-0.9,-0.45,color,times,x,y); 01084 square(-0.675,-0.45,color,times,x,y); 01085 square(-0.45,-0.45,color,times,x,y); 01086 square(-0.225,-0.45,color,times,x,y); 01087 square(0.0,-0.45,color,times,x,y); 01088 square(0.225,-0.45,color,times,x,y); 01089 01090 square(-0.9,-0.225,color,times,x,y); 01091 square(-0.675,-0.225,color,times,x,y); 01092 square(-0.45,-0.225,color,times,x,y); 01093 01094 square(-0.9,0.0,color,times,x,y); 01095 square(-0.675,0.0,color,times,x,y); 01096 square(-0.45,0.0,color,times,x,y); 01097 01098 square(-0.9,0.225,color,times,x,y); 01099 square(-0.675,0.225,color,times,x,y); 01100 square(-0.45,0.225,color,times,x,y); 01101 }break; 01102 case 3: // Reverse L shape Right 01103 { 01104 square(0.675,-0.9,color,times,x,y); 01105 square(0.45,-0.9,color,times,x,y); 01106 square(0.225,-0.9,color,times,x,y); 01107 square(0.0,-0.9,color,times,x,y); 01108 square(-0.225,-0.9,color,times,x,y); 01109 square(-0.45,-0.9,color,times,x,y); 01110 01111 square(0.675,-0.675,color,times,x,y); 01112 square(0.45,-0.675,color,times,x,y); 01113 square(0.225,-0.675,color,times,x,y); 01114 square(0.0,-0.675,color,times,x,y); 01115 square(-0.225,-0.675,color,times,x,y); 01116 square(-0.45,-0.675,color,times,x,y); 01117 01118 square(0.675,-0.45,color,times,x,y); 01119 square(0.45,-0.45,color,times,x,y); 01120 square(0.225,-0.45,color,times,x,y); 01121 square(0.0,-0.45,color,times,x,y); 01122 square(-0.225,-0.45,color,times,x,y); 01123 square(-0.45,-0.45,color,times,x,y); 01124 01125 square(0.675,-0.225,color,times,x,y); 01126 square(0.45,-0.225,color,times,x,y); 01127 square(0.225,-0.225,color,times,x,y); 01128 01129 square(0.675,0.0,color,times,x,y); 01130 square(0.45,0.0,color,times,x,y); 01131 square(0.225,0.0,color,times,x,y); 01132 01133 square(0.675,0.225,color,times,x,y); 01134 square(0.45,0.225,color,times,x,y); 01135 square(0.225,0.225,color,times,x,y); 01136 }break; 01137 } 01138 } 01139 01140 void draw_L2(int type, float x, float y, float color, float times) //L shape 01141 { 01142 switch (type){ //L shape is Left 01143 case 0: 01144 { 01145 square(-0.45,0.225,color,times,x,y); 01146 square(-0.225,0.225,color,times,x,y); 01147 square(0.0,0.225,color,times,x,y); 01148 square(0.225,0.225,color,times,x,y); 01149 square(0.45,0.225,color,times,x,y); 01150 square(0.675,0.225,color,times,x,y); 01151 01152 square(-0.45,0.0,color,times,x,y); 01153 square(-0.225,0.0,color,times,x,y); 01154 square(0.0,0.0,color,times,x,y); 01155 square(0.225,0.0,color,times,x,y); 01156 square(0.45,0.0,color,times,x,y); 01157 square(0.675,0.0,color,times,x,y); 01158 01159 square(-0.45,-0.225,color,times,x,y); 01160 square(-0.225,-0.225,color,times,x,y); 01161 square(0.0,-0.225,color,times,x,y); 01162 square(0.225,-0.225,color,times,x,y); 01163 square(0.45,-0.225,color,times,x,y); 01164 square(0.675,-0.225,color,times,x,y); 01165 01166 square(0.225,-0.45,color,times,x,y); 01167 square(0.45,-0.45,color,times,x,y); 01168 square(0.675,-0.45,color,times,x,y); 01169 01170 square(0.225,-0.675,color,times,x,y); 01171 square(0.45,-0.675,color,times,x,y); 01172 square(0.675,-0.675,color,times,x,y); 01173 01174 square(0.225,-0.9,color,times,x,y); 01175 square(0.45,-0.9,color,times,x,y); 01176 square(0.675,-0.9,color,times,x,y); 01177 }break; 01178 case 1:{ //L shape is Right 01179 square(0.225,0.225,color,times,x,y); 01180 square(0.0,0.225,color,times,x,y); 01181 square(-0.225,0.225,color,times,x,y); 01182 square(-0.45,0.225,color,times,x,y); 01183 square(-0.675,0.225,color,times,x,y); 01184 square(-0.9,0.225,color,times,x,y); 01185 01186 square(0.225,0.0,color,times,x,y); 01187 square(0.0,0.0,color,times,x,y); 01188 square(-0.225,0.0,color,times,x,y); 01189 square(-0.45,0.0,color,times,x,y); 01190 square(-0.675,0.0,color,times,x,y); 01191 square(-0.9,0.0,color,times,x,y); 01192 01193 square(0.225,-0.225,color,times,x,y); 01194 square(0.0,-0.225,color,times,x,y); 01195 square(-0.225,-0.225,color,times,x,y); 01196 square(-0.45,-0.225,color,times,x,y); 01197 square(-0.675,-0.225,color,times,x,y); 01198 square(-0.9,-0.225,color,times,x,y); 01199 01200 square(-0.45,-0.45,color,times,x,y); 01201 square(-0.675,-0.45,color,times,x,y); 01202 square(-0.9,-0.45,color,times,x,y); 01203 01204 square(-0.45,-0.675,color,times,x,y); 01205 square(-0.675,-0.675,color,times,x,y); 01206 square(-0.9,-0.675,color,times,x,y); 01207 01208 square(-0.45,-0.9,color,times,x,y); 01209 square(-0.675,-0.9,color,times,x,y); 01210 square(-0.9,-0.9,color,times,x,y); 01211 }break; 01212 case 2: // Reverse L Shape Left 01213 { 01214 square(-0.45,-0.45,color,times,x,y); 01215 square(-0.225,-0.45,color,times,x,y); 01216 square(0.0,-0.45,color,times,x,y); 01217 square(0.225,-0.45,color,times,x,y); 01218 square(0.45,-0.45,color,times,x,y); 01219 square(0.675,-0.45,color,times,x,y); 01220 01221 square(-0.45,-0.225,color,times,x,y); 01222 square(-0.225,-0.225,color,times,x,y); 01223 square(0.0,-0.225,color,times,x,y); 01224 square(0.225,-0.225,color,times,x,y); 01225 square(0.45,-0.225,color,times,x,y); 01226 square(0.675,-0.225,color,times,x,y); 01227 01228 square(-0.45,0.0,color,times,x,y); 01229 square(-0.225,0.0,color,times,x,y); 01230 square(0.0,0.0,color,times,x,y); 01231 square(0.225,0.0,color,times,x,y); 01232 square(0.45,0.0,color,times,x,y); 01233 square(0.675,0.0,color,times,x,y); 01234 01235 square(0.225,0.225,color,times,x,y); 01236 square(0.45,0.225,color,times,x,y); 01237 square(0.675,0.225,color,times,x,y); 01238 01239 square(0.225,0.45,color,times,x,y); 01240 square(0.45,0.45,color,times,x,y); 01241 square(0.675,0.45,color,times,x,y); 01242 01243 square(0.225,0.675,color,times,x,y); 01244 square(0.45,0.675,color,times,x,y); 01245 square(0.675,0.675,color,times,x,y); 01246 }break; 01247 case 3: // Reverse L shape Right 01248 { 01249 square(0.225,-0.45,color,times,x,y); 01250 square(0.0,-0.45,color,times,x,y); 01251 square(-0.225,-0.45,color,times,x,y); 01252 square(-0.45,-0.45,color,times,x,y); 01253 square(-0.675,-0.45,color,times,x,y); 01254 square(-0.9,-0.45,color,times,x,y); 01255 01256 square(0.225,-0.225,color,times,x,y); 01257 square(0.0,-0.225,color,times,x,y); 01258 square(-0.225,-0.225,color,times,x,y); 01259 square(-0.45,-0.225,color,times,x,y); 01260 square(-0.675,-0.225,color,times,x,y); 01261 square(-0.9,-0.225,color,times,x,y); 01262 01263 square(0.225,0.0,color,times,x,y); 01264 square(0.0,0.0,color,times,x,y); 01265 square(-0.225,0.0,color,times,x,y); 01266 square(-0.45,0.0,color,times,x,y); 01267 square(-0.675,0.0,color,times,x,y); 01268 square(-0.9,0.0,color,times,x,y); 01269 01270 square(-0.45,0.225,color,times,x,y); 01271 square(-0.675,0.225,color,times,x,y); 01272 square(-0.9,0.225,color,times,x,y); 01273 01274 square(-0.45,0.45,color,times,x,y); 01275 square(-0.675,0.45,color,times,x,y); 01276 square(-0.9,0.45,color,times,x,y); 01277 01278 square(-0.45,0.675,color,times,x,y); 01279 square(-0.675,0.675,color,times,x,y); 01280 square(-0.9,0.675,color,times,x,y); 01281 }break; 01282 } 01283 } 01284 01285 void draw_L3(int type, float x, float y, float color, float times) //L shape 01286 { 01287 switch (type){ //L shape is Left 01288 case 0: 01289 { 01290 square(-0.9,0.675,color,times,x,y); 01291 square(-0.675,0.675,color,times,x,y); 01292 square(-0.45,0.675,color,times,x,y); 01293 01294 square(-0.9,0.45,color,times,x,y); 01295 square(-0.675,0.45,color,times,x,y); 01296 square(-0.45,0.45,color,times,x,y); 01297 01298 square(-0.9,0.225,color,times,x,y); 01299 square(-0.675,0.225,color,times,x,y); 01300 square(-0.45,0.225,color,times,x,y); 01301 01302 square(-0.9,0.0,color,times,x,y); 01303 square(-0.675,0.0,color,times,x,y); 01304 square(-0.45,0.0,color,times,x,y); 01305 square(-0.225,0.0,color,times,x,y); 01306 square(0.0,0.0,color,times,x,y); 01307 square(0.225,0.0,color,times,x,y); 01308 01309 square(-0.9,-0.225,color,times,x,y); 01310 square(-0.675,-0.225,color,times,x,y); 01311 square(-0.45,-0.225,color,times,x,y); 01312 square(-0.225,-0.225,color,times,x,y); 01313 square(0.0,-0.225,color,times,x,y); 01314 square(0.225,-0.225,color,times,x,y); 01315 01316 square(-0.9,-0.45,color,times,x,y); 01317 square(-0.675,-0.45,color,times,x,y); 01318 square(-0.45,-0.45,color,times,x,y); 01319 square(-0.225,-0.45,color,times,x,y); 01320 square(0.0,-0.45,color,times,x,y); 01321 square(0.225,-0.45,color,times,x,y); 01322 }break; 01323 case 1:{ //L shape is Right 01324 square(0.675,0.675,color,times,x,y); 01325 square(0.45,0.675,color,times,x,y); 01326 square(0.225,0.675,color,times,x,y); 01327 01328 square(0.675,0.45,color,times,x,y); 01329 square(0.45,0.45,color,times,x,y); 01330 square(0.225,0.45,color,times,x,y); 01331 01332 square(0.675,0.225,color,times,x,y); 01333 square(0.45,0.225,color,times,x,y); 01334 square(0.225,0.225,color,times,x,y); 01335 01336 square(0.675,0.0,color,times,x,y); 01337 square(0.45,0.0,color,times,x,y); 01338 square(0.225,0.0,color,times,x,y); 01339 square(0.0,0.0,color,times,x,y); 01340 square(-0.225,0.0,color,times,x,y); 01341 square(-0.45,0.0,color,times,x,y); 01342 01343 square(0.675,-0.225,color,times,x,y); 01344 square(0.45,-0.225,color,times,x,y); 01345 square(0.225,-0.225,color,times,x,y); 01346 square(0.0,-0.225,color,times,x,y); 01347 square(-0.225,-0.225,color,times,x,y); 01348 square(-0.45,-0.225,color,times,x,y); 01349 01350 square(0.675,-0.45,color,times,x,y); 01351 square(0.45,-0.45,color,times,x,y); 01352 square(0.225,-0.45,color,times,x,y); 01353 square(0.0,-0.45,color,times,x,y); 01354 square(-0.225,-0.45,color,times,x,y); 01355 square(-0.45,-0.45,color,times,x,y); 01356 }break; 01357 case 2: // Reverse L Shape Left 01358 { 01359 square(-0.9,-0.9,color,times,x,y); 01360 square(-0.675,-0.9,color,times,x,y); 01361 square(-0.45,-0.9,color,times,x,y); 01362 01363 square(-0.9,-0.675,color,times,x,y); 01364 square(-0.675,-0.675,color,times,x,y); 01365 square(-0.45,-0.675,color,times,x,y); 01366 01367 square(-0.9,-0.45,color,times,x,y); 01368 square(-0.675,-0.45,color,times,x,y); 01369 square(-0.45,-0.45,color,times,x,y); 01370 01371 square(-0.9,-0.225,color,times,x,y); 01372 square(-0.675,-0.225,color,times,x,y); 01373 square(-0.45,-0.225,color,times,x,y); 01374 square(-0.225,-0.225,color,times,x,y); 01375 square(0.0,-0.225,color,times,x,y); 01376 square(0.225,-0.225,color,times,x,y); 01377 01378 square(-0.9,0.0,color,times,x,y); 01379 square(-0.675,0.0,color,times,x,y); 01380 square(-0.45,0.0,color,times,x,y); 01381 square(-0.225,0.0,color,times,x,y); 01382 square(0.0,0.0,color,times,x,y); 01383 square(0.225,0.0,color,times,x,y); 01384 01385 square(-0.9,0.225,color,times,x,y); 01386 square(-0.675,0.225,color,times,x,y); 01387 square(-0.45,0.225,color,times,x,y); 01388 square(-0.225,0.225,color,times,x,y); 01389 square(0.0,0.225,color,times,x,y); 01390 square(0.225,0.225,color,times,x,y); 01391 }break; 01392 case 3: // Reverse L shape Right 01393 { 01394 square(0.675,-0.9,color,times,x,y); 01395 square(0.45,-0.9,color,times,x,y); 01396 square(0.225,-0.9,color,times,x,y); 01397 01398 square(0.675,-0.675,color,times,x,y); 01399 square(0.45,-0.675,color,times,x,y); 01400 square(0.225,-0.675,color,times,x,y); 01401 01402 square(0.675,-0.45,color,times,x,y); 01403 square(0.45,-0.45,color,times,x,y); 01404 square(0.225,-0.45,color,times,x,y); 01405 01406 square(0.675,-0.225,color,times,x,y); 01407 square(0.45,-0.225,color,times,x,y); 01408 square(0.225,-0.225,color,times,x,y); 01409 square(0.0,-0.225,color,times,x,y); 01410 square(-0.225,-0.225,color,times,x,y); 01411 square(-0.45,-0.225,color,times,x,y); 01412 01413 square(0.675,0.0,color,times,x,y); 01414 square(0.45,0.0,color,times,x,y); 01415 square(0.225,0.0,color,times,x,y); 01416 square(0.0,0.0,color,times,x,y); 01417 square(-0.225,0.0,color,times,x,y); 01418 square(-0.45,0.0,color,times,x,y); 01419 01420 square(0.675,0.225,color,times,x,y); 01421 square(0.45,0.225,color,times,x,y); 01422 square(0.225,0.225,color,times,x,y); 01423 square(0.0,0.225,color,times,x,y); 01424 square(-0.225,0.225,color,times,x,y); 01425 square(-0.45,0.225,color,times,x,y); 01426 }break; 01427 } 01428 } 01429 01430 /* 01431 void draw_dist(int type, float x, float y, float color, float times) 01432 { 01433 int anti_color; 01434 01435 if(color == 1.0)anti_color = 0.0; 01436 else anti_color = 1.0; 01437 switch(type){ 01438 case 0: 01439 { 01440 square(-0.45,-0.9,color,times,x,y); 01441 square(-0.225,-0.9,color,times,x,y); 01442 square(0.0,-0.9,color,times,x,y); 01443 square(0.225,-0.9,color,times,x,y); 01444 square(0.45,-0.9,color,times,x,y); 01445 square(0.675,-0.9,color,times,x,y); 01446 01447 square(-0.45,-0.675,color,times,x,y); 01448 square(-0.225,-0.675,color,times,x,y); 01449 square(0.0,-0.675,color,times,x,y); 01450 square(0.225,-0.675,color,times,x,y); 01451 square(0.45,-0.675,color,times,x,y); 01452 square(0.675,-0.675,color,times,x,y); 01453 01454 square(-0.45,-0.45,color,times,x,y); 01455 square(-0.225,-0.45,color,times,x,y); 01456 square(0.0,-0.45,color,times,x,y); 01457 square(0.225,-0.45,color,times,x,y); 01458 square(0.45,-0.45,color,times,x,y); 01459 square(0.675,-0.45,color,times,x,y); 01460 01461 square(-0.45,-0.225,color,times,x,y); 01462 square(-0.225,-0.225,color,times,x,y); 01463 square(0.0,-0.225,color,times,x,y); 01464 square(0.225,-0.225,color,times,x,y); 01465 square(0.45,-0.225,color,times,x,y); 01466 square(0.675,-0.225,color,times,x,y); 01467 01468 square(-0.45,0.0,color,times,x,y); 01469 square(-0.225,0.0,color,times,x,y); 01470 square(0.0,0.0,color,times,x,y); 01471 square(0.225,0.0,color,times,x,y); 01472 square(0.45,0.0,color,times,x,y); 01473 square(0.675,0.0,color,times,x,y); 01474 01475 square(-0.45,0.225,color,times,x,y); 01476 square(-0.225,0.225,color,times,x,y); 01477 square(0.0,0.225,color,times,x,y); 01478 square(0.225,0.225,color,times,x,y); 01479 square(0.45,0.225,color,times,x,y); 01480 square(0.675,0.225,color,times,x,y); 01481 01482 square(-1.125,-0.225,anti_color,times,x,y); 01483 square(-0.9,-0.225,anti_color,times,x,y); 01484 square(-0.675,-0.225,anti_color,times,x,y); 01485 01486 square(-1.125,0.0,anti_color,times,x,y); 01487 square(-0.9,0.0,anti_color,times,x,y); 01488 square(-0.675,0.0,anti_color,times,x,y); 01489 01490 square(-1.125,0.225,anti_color,times,x,y); 01491 square(-0.9,0.225,anti_color,times,x,y); 01492 square(-0.675,0.225,anti_color,times,x,y); 01493 01494 square(-1.125,0.45,anti_color,times,x,y); 01495 square(-0.9,0.45,anti_color,times,x,y); 01496 square(-0.675,0.45,anti_color,times,x,y); 01497 square(-0.45,0.45,anti_color,times,x,y); 01498 square(-0.225,0.45,anti_color,times,x,y); 01499 square(0.0,0.45,anti_color,times,x,y); 01500 01501 square(-1.125,0.675,anti_color,times,x,y); 01502 square(-0.9,0.675,anti_color,times,x,y); 01503 square(-0.675,0.675,anti_color,times,x,y); 01504 square(-0.45,0.675,anti_color,times,x,y); 01505 square(-0.225,0.675,anti_color,times,x,y); 01506 square(0.0,0.675,anti_color,times,x,y); 01507 01508 square(-1.125,0.9,anti_color,times,x,y); 01509 square(-0.9,0.9,anti_color,times,x,y); 01510 square(-0.675,0.9,anti_color,times,x,y); 01511 square(-0.45,0.9,anti_color,times,x,y); 01512 square(-0.225,0.9,anti_color,times,x,y); 01513 square(0.0,0.9,anti_color,times,x,y); 01514 }break; 01515 case 1: 01516 { 01517 square(0.225,-0.9,color,times,x,y); 01518 square(0.0,-0.9,color,times,x,y); 01519 square(-0.225,-0.9,color,times,x,y); 01520 square(-0.45,-0.9,color,times,x,y); 01521 square(-0.675,-0.9,color,times,x,y); 01522 square(-0.9,-0.9,color,times,x,y); 01523 01524 square(0.225,-0.675,color,times,x,y); 01525 square(0.0,-0.675,color,times,x,y); 01526 square(-0.225,-0.675,color,times,x,y); 01527 square(-0.45,-0.675,color,times,x,y); 01528 square(-0.675,-0.675,color,times,x,y); 01529 square(-0.9,-0.675,color,times,x,y); 01530 01531 square(0.225,-0.45,color,times,x,y); 01532 square(0.0,-0.45,color,times,x,y); 01533 square(-0.225,-0.45,color,times,x,y); 01534 square(-0.45,-0.45,color,times,x,y); 01535 square(-0.675,-0.45,color,times,x,y); 01536 square(-0.9,-0.45,color,times,x,y); 01537 01538 square(0.225,-0.225,color,times,x,y); 01539 square(0.0,-0.225,color,times,x,y); 01540 square(-0.225,-0.225,color,times,x,y); 01541 square(-0.45,-0.225,color,times,x,y); 01542 square(-0.675,-0.225,color,times,x,y); 01543 square(-0.9,-0.225,color,times,x,y); 01544 01545 square(0.225,0.0,color,times,x,y); 01546 square(0.0,0.0,color,times,x,y); 01547 square(-0.225,0.0,color,times,x,y); 01548 square(-0.45,0.0,color,times,x,y); 01549 square(-0.675,0.0,color,times,x,y); 01550 square(-0.9,0.0,color,times,x,y); 01551 01552 square(0.225,0.225,color,times,x,y); 01553 square(0.0,0.225,color,times,x,y); 01554 square(-0.225,0.225,color,times,x,y); 01555 square(-0.45,0.225,color,times,x,y); 01556 square(-0.675,0.225,color,times,x,y); 01557 square(-0.9,0.225,color,times,x,y); 01558 01559 square(0.9,-0.225,anti_color,times,x,y); 01560 square(0.675,-0.225,anti_color,times,x,y); 01561 square(0.45,-0.225,anti_color,times,x,y); 01562 01563 square(0.9,0.0,anti_color,times,x,y); 01564 square(0.675,0.0,anti_color,times,x,y); 01565 square(0.45,0.0,anti_color,times,x,y); 01566 01567 square(0.9,0.225,anti_color,times,x,y); 01568 square(0.675,0.225,anti_color,times,x,y); 01569 square(0.45,0.225,anti_color,times,x,y); 01570 01571 square(0.9,0.45,anti_color,times,x,y); 01572 square(0.675,0.45,anti_color,times,x,y); 01573 square(0.45,0.45,anti_color,times,x,y); 01574 square(0.225,0.45,anti_color,times,x,y); 01575 square(0.0,0.45,anti_color,times,x,y); 01576 square(-0.225,0.45,anti_color,times,x,y); 01577 01578 square(0.9,0.675,anti_color,times,x,y); 01579 square(0.675,0.675,anti_color,times,x,y); 01580 square(0.45,0.675,anti_color,times,x,y); 01581 square(0.225,0.675,anti_color,times,x,y); 01582 square(0.0,0.675,anti_color,times,x,y); 01583 square(-0.225,0.675,anti_color,times,x,y); 01584 01585 square(0.9,0.9,anti_color,times,x,y); 01586 square(0.675,0.9,anti_color,times,x,y); 01587 square(0.45,0.9,anti_color,times,x,y); 01588 square(0.225,0.9,anti_color,times,x,y); 01589 square(0.0,0.9,anti_color,times,x,y); 01590 square(-0.225,0.9,anti_color,times,x,y); 01591 }break; 01592 case 2: 01593 { 01594 square(-0.45,0.675,color,times,x,y); 01595 square(-0.225,0.675,color,times,x,y); 01596 square(0.0,0.675,color,times,x,y); 01597 square(0.225,0.675,color,times,x,y); 01598 square(0.45,0.675,color,times,x,y); 01599 square(0.675,0.675,color,times,x,y); 01600 01601 square(-0.45,0.45,color,times,x,y); 01602 square(-0.225,0.45,color,times,x,y); 01603 square(0.0,0.45,color,times,x,y); 01604 square(0.225,0.45,color,times,x,y); 01605 square(0.45,0.45,color,times,x,y); 01606 square(0.675,0.45,color,times,x,y); 01607 01608 square(-0.45,0.225,color,times,x,y); 01609 square(-0.225,0.225,color,times,x,y); 01610 square(0.0,0.225,color,times,x,y); 01611 square(0.225,0.225,color,times,x,y); 01612 square(0.45,0.225,color,times,x,y); 01613 square(0.675,0.225,color,times,x,y); 01614 01615 square(-0.45,0.0,color,times,x,y); 01616 square(-0.225,0.0,color,times,x,y); 01617 square(0.0,0.0,color,times,x,y); 01618 square(0.225,0.0,color,times,x,y); 01619 square(0.45,0.0,color,times,x,y); 01620 square(0.675,0.0,color,times,x,y); 01621 01622 square(-0.45,-0.225,color,times,x,y); 01623 square(-0.225,-0.225,color,times,x,y); 01624 square(0.0,-0.225,color,times,x,y); 01625 square(0.225,-0.225,color,times,x,y); 01626 square(0.45,-0.225,color,times,x,y); 01627 square(0.675,-0.225,color,times,x,y); 01628 01629 square(-0.45,-0.45,color,times,x,y); 01630 square(-0.225,-0.45,color,times,x,y); 01631 square(0.0,-0.45,color,times,x,y); 01632 square(0.225,-0.45,color,times,x,y); 01633 square(0.45,-0.45,color,times,x,y); 01634 square(0.675,-0.45,color,times,x,y); 01635 01636 square(-1.125,0.0,anti_color,times,x,y); 01637 square(-0.9,0.0,anti_color,times,x,y); 01638 square(-0.675,0.0,anti_color,times,x,y); 01639 01640 square(-1.125,-0.225,anti_color,times,x,y); 01641 square(-0.9,-0.225,anti_color,times,x,y); 01642 square(-0.675,-0.225,anti_color,times,x,y); 01643 01644 square(-1.125,-0.45,anti_color,times,x,y); 01645 square(-0.9,-0.45,anti_color,times,x,y); 01646 square(-0.675,-0.45,anti_color,times,x,y); 01647 01648 square(-1.125,-0.675,anti_color,times,x,y); 01649 square(-0.9,-0.675,anti_color,times,x,y); 01650 square(-0.675,-0.675,anti_color,times,x,y); 01651 square(-0.45,-0.675,anti_color,times,x,y); 01652 square(-0.225,-0.675,anti_color,times,x,y); 01653 square(0.0,-0.675,anti_color,times,x,y); 01654 01655 square(-1.125,-0.9,anti_color,times,x,y); 01656 square(-0.9,-0.9,anti_color,times,x,y); 01657 square(-0.675,-0.9,anti_color,times,x,y); 01658 square(-0.45,-0.9,anti_color,times,x,y); 01659 square(-0.225,-0.9,anti_color,times,x,y); 01660 square(0.0,-0.9,anti_color,times,x,y); 01661 01662 square(-1.125,-1.125,anti_color,times,x,y); 01663 square(-0.9,-1.125,anti_color,times,x,y); 01664 square(-0.675,-1.125,anti_color,times,x,y); 01665 square(-0.45,-1.125,anti_color,times,x,y); 01666 square(-0.225,-1.125,anti_color,times,x,y); 01667 square(0.0,-1.125,anti_color,times,x,y); 01668 }break; 01669 case 3: 01670 { 01671 square(0.225,0.675,color,times,x,y); 01672 square(0.0,0.675,color,times,x,y); 01673 square(-0.225,0.675,color,times,x,y); 01674 square(-0.45,0.675,color,times,x,y); 01675 square(-0.675,0.675,color,times,x,y); 01676 square(-0.9,0.675,color,times,x,y); 01677 01678 square(0.225,0.45,color,times,x,y); 01679 square(0.0,0.45,color,times,x,y); 01680 square(-0.225,0.45,color,times,x,y); 01681 square(-0.45,0.45,color,times,x,y); 01682 square(-0.675,0.45,color,times,x,y); 01683 square(-0.9,0.45,color,times,x,y); 01684 01685 square(0.225,0.225,color,times,x,y); 01686 square(0.0,0.225,color,times,x,y); 01687 square(-0.225,0.225,color,times,x,y); 01688 square(-0.45,0.225,color,times,x,y); 01689 square(-0.675,0.225,color,times,x,y); 01690 square(-0.9,0.225,color,times,x,y); 01691 01692 square(0.225,0.0,color,times,x,y); 01693 square(0.0,0.0,color,times,x,y); 01694 square(-0.225,0.0,color,times,x,y); 01695 square(-0.45,0.0,color,times,x,y); 01696 square(-0.675,0.0,color,times,x,y); 01697 square(-0.9,0.0,color,times,x,y); 01698 01699 square(0.225,-0.225,color,times,x,y); 01700 square(0.0,-0.225,color,times,x,y); 01701 square(-0.225,-0.225,color,times,x,y); 01702 square(-0.45,-0.225,color,times,x,y); 01703 square(-0.675,-0.225,color,times,x,y); 01704 square(-0.9,-0.225,color,times,x,y); 01705 01706 square(0.225,-0.45,color,times,x,y); 01707 square(0.0,-0.45,color,times,x,y); 01708 square(-0.225,-0.45,color,times,x,y); 01709 square(-0.45,-0.45,color,times,x,y); 01710 square(-0.675,-0.45,color,times,x,y); 01711 square(-0.9,-0.45,color,times,x,y); 01712 01713 square(0.9,0.0,anti_color,times,x,y); 01714 square(0.675,0.0,anti_color,times,x,y); 01715 square(0.45,0.0,anti_color,times,x,y); 01716 01717 square(0.9,-0.225,anti_color,times,x,y); 01718 square(0.675,-0.225,anti_color,times,x,y); 01719 square(0.45,-0.225,anti_color,times,x,y); 01720 01721 square(0.9,-0.45,anti_color,times,x,y); 01722 square(0.675,-0.45,anti_color,times,x,y); 01723 square(0.45,-0.45,anti_color,times,x,y); 01724 01725 square(0.9,-0.675,anti_color,times,x,y); 01726 square(0.675,-0.675,anti_color,times,x,y); 01727 square(0.45,-0.675,anti_color,times,x,y); 01728 square(0.225,-0.675,anti_color,times,x,y); 01729 square(0.0,-0.675,anti_color,times,x,y); 01730 square(-0.225,-0.675,anti_color,times,x,y); 01731 01732 square(0.9,-0.9,anti_color,times,x,y); 01733 square(0.675,-0.9,anti_color,times,x,y); 01734 square(0.45,-0.9,anti_color,times,x,y); 01735 square(0.225,-0.9,anti_color,times,x,y); 01736 square(0.0,-0.9,anti_color,times,x,y); 01737 square(-0.225,-0.9,anti_color,times,x,y); 01738 01739 square(0.9,-1.125,anti_color,times,x,y); 01740 square(0.675,-1.125,anti_color,times,x,y); 01741 square(0.45,-1.125,anti_color,times,x,y); 01742 square(0.225,-1.125,anti_color,times,x,y); 01743 square(0.0,-1.125,anti_color,times,x,y); 01744 square(-0.225,-1.125,anti_color,times,x,y); 01745 }break; 01746 } 01747 } 01748 */ 01749 01750 void draw_dist(int type, float x, float y, float color, float times) 01751 { 01752 float anti_color; 01753 01754 if(color == 1.0)anti_color = 0.0; 01755 else anti_color = 1.0; 01756 switch(type){ 01757 case 0: 01758 { 01759 /*square(-0.45,-0.9,color,times,x,y); 01760 square(-0.225,-0.9,color,times,x,y); 01761 square(0.0,-0.9,color,times,x,y); 01762 square(0.225,-0.9,color,times,x,y); 01763 square(0.45,-0.9,color,times,x,y); 01764 square(0.675,-0.9,color,times,x,y); 01765 01766 square(-0.45,-0.675,color,times,x,y); 01767 square(-0.225,-0.675,color,times,x,y); 01768 square(0.0,-0.675,color,times,x,y); 01769 square(0.225,-0.675,color,times,x,y); 01770 square(0.45,-0.675,color,times,x,y); 01771 square(0.675,-0.675,color,times,x,y); 01772 01773 square(-0.45,-0.45,color,times,x,y); 01774 square(-0.225,-0.45,color,times,x,y); 01775 square(0.0,-0.45,color,times,x,y); 01776 square(0.225,-0.45,color,times,x,y); 01777 square(0.45,-0.45,color,times,x,y); 01778 square(0.675,-0.45,color,times,x,y); 01779 01780 square(-0.45,-0.225,color,times,x,y); 01781 square(-0.225,-0.225,color,times,x,y); 01782 square(0.0,-0.225,color,times,x,y); 01783 square(0.225,-0.225,color,times,x,y); 01784 square(0.45,-0.225,color,times,x,y); 01785 square(0.675,-0.225,color,times,x,y); 01786 01787 square(-0.45,0.0,color,times,x,y); 01788 square(-0.225,0.0,color,times,x,y); 01789 square(0.0,0.0,color,times,x,y); 01790 square(0.225,0.0,color,times,x,y); 01791 square(0.45,0.0,color,times,x,y); 01792 square(0.675,0.0,color,times,x,y); 01793 01794 square(-0.45,0.225,color,times,x,y); 01795 square(-0.225,0.225,color,times,x,y); 01796 square(0.0,0.225,color,times,x,y); 01797 square(0.225,0.225,color,times,x,y); 01798 square(0.45,0.225,color,times,x,y); 01799 square(0.675,0.225,color,times,x,y);*/ 01800 /******************************************/ 01801 square(-1.125,-0.225,anti_color,times,x,y); 01802 square(-0.9,-0.225,anti_color,times,x,y); 01803 square(-0.675,-0.225,anti_color,times,x,y); 01804 01805 square(-1.125,0.0,anti_color,times,x,y); 01806 square(-0.9,0.0,anti_color,times,x,y); 01807 square(-0.675,0.0,anti_color,times,x,y); 01808 01809 square(-1.125,0.225,anti_color,times,x,y); 01810 square(-0.9,0.225,anti_color,times,x,y); 01811 square(-0.675,0.225,anti_color,times,x,y); 01812 01813 square(-1.125,0.45,anti_color,times,x,y); 01814 square(-0.9,0.45,anti_color,times,x,y); 01815 square(-0.675,0.45,anti_color,times,x,y); 01816 square(-0.45,0.45,anti_color,times,x,y); 01817 square(-0.225,0.45,anti_color,times,x,y); 01818 square(0.0,0.45,anti_color,times,x,y); 01819 01820 square(-1.125,0.675,anti_color,times,x,y); 01821 square(-0.9,0.675,anti_color,times,x,y); 01822 square(-0.675,0.675,anti_color,times,x,y); 01823 square(-0.45,0.675,anti_color,times,x,y); 01824 square(-0.225,0.675,anti_color,times,x,y); 01825 square(0.0,0.675,anti_color,times,x,y); 01826 01827 square(-1.125,0.9,anti_color,times,x,y); 01828 square(-0.9,0.9,anti_color,times,x,y); 01829 square(-0.675,0.9,anti_color,times,x,y); 01830 square(-0.45,0.9,anti_color,times,x,y); 01831 square(-0.225,0.9,anti_color,times,x,y); 01832 square(0.0,0.9,anti_color,times,x,y); 01833 01834 square(-0.45,-0.9,color,times,x,y); 01835 square(-0.225,-0.9,color,times,x,y); 01836 square(0.0,-0.9,color,times,x,y); 01837 square(0.225,-0.9,color,times,x,y); 01838 square(0.45,-0.9,color,times,x,y); 01839 square(0.675,-0.9,color,times,x,y); 01840 01841 square(-0.45,-0.675,color,times,x,y); 01842 square(-0.225,-0.675,color,times,x,y); 01843 square(0.0,-0.675,color,times,x,y); 01844 square(0.225,-0.675,color,times,x,y); 01845 square(0.45,-0.675,color,times,x,y); 01846 square(0.675,-0.675,color,times,x,y); 01847 01848 square(-0.45,-0.45,color,times,x,y); 01849 square(-0.225,-0.45,color,times,x,y); 01850 square(0.0,-0.45,color,times,x,y); 01851 square(0.225,-0.45,color,times,x,y); 01852 square(0.45,-0.45,color,times,x,y); 01853 square(0.675,-0.45,color,times,x,y); 01854 01855 square(-0.45,-0.225,color,times,x,y); 01856 square(-0.225,-0.225,color,times,x,y); 01857 square(0.0,-0.225,color,times,x,y); 01858 square(0.225,-0.225,color,times,x,y); 01859 square(0.45,-0.225,color,times,x,y); 01860 square(0.675,-0.225,color,times,x,y); 01861 01862 square(-0.45,0.0,color,times,x,y); 01863 square(-0.225,0.0,color,times,x,y); 01864 square(0.0,0.0,color,times,x,y); 01865 square(0.225,0.0,color,times,x,y); 01866 square(0.45,0.0,color,times,x,y); 01867 square(0.675,0.0,color,times,x,y); 01868 01869 square(-0.45,0.225,color,times,x,y); 01870 square(-0.225,0.225,color,times,x,y); 01871 square(0.0,0.225,color,times,x,y); 01872 square(0.225,0.225,color,times,x,y); 01873 square(0.45,0.225,color,times,x,y); 01874 square(0.675,0.225,color,times,x,y); 01875 01876 }break; 01877 case 1: 01878 { 01879 /*square(0.225,-0.9,color,times,x,y); 01880 square(0.0,-0.9,color,times,x,y); 01881 square(-0.225,-0.9,color,times,x,y); 01882 square(-0.45,-0.9,color,times,x,y); 01883 square(-0.675,-0.9,color,times,x,y); 01884 square(-0.9,-0.9,color,times,x,y); 01885 01886 square(0.225,-0.675,color,times,x,y); 01887 square(0.0,-0.675,color,times,x,y); 01888 square(-0.225,-0.675,color,times,x,y); 01889 square(-0.45,-0.675,color,times,x,y); 01890 square(-0.675,-0.675,color,times,x,y); 01891 square(-0.9,-0.675,color,times,x,y); 01892 01893 square(0.225,-0.45,color,times,x,y); 01894 square(0.0,-0.45,color,times,x,y); 01895 square(-0.225,-0.45,color,times,x,y); 01896 square(-0.45,-0.45,color,times,x,y); 01897 square(-0.675,-0.45,color,times,x,y); 01898 square(-0.9,-0.45,color,times,x,y); 01899 01900 square(0.225,-0.225,color,times,x,y); 01901 square(0.0,-0.225,color,times,x,y); 01902 square(-0.225,-0.225,color,times,x,y); 01903 square(-0.45,-0.225,color,times,x,y); 01904 square(-0.675,-0.225,color,times,x,y); 01905 square(-0.9,-0.225,color,times,x,y); 01906 01907 square(0.225,0.0,color,times,x,y); 01908 square(0.0,0.0,color,times,x,y); 01909 square(-0.225,0.0,color,times,x,y); 01910 square(-0.45,0.0,color,times,x,y); 01911 square(-0.675,0.0,color,times,x,y); 01912 square(-0.9,0.0,color,times,x,y); 01913 01914 square(0.225,0.225,color,times,x,y); 01915 square(0.0,0.225,color,times,x,y); 01916 square(-0.225,0.225,color,times,x,y); 01917 square(-0.45,0.225,color,times,x,y); 01918 square(-0.675,0.225,color,times,x,y); 01919 square(-0.9,0.225,color,times,x,y);*/ 01920 /************************************/ 01921 square(0.9,-0.225,anti_color,times,x,y); 01922 square(0.675,-0.225,anti_color,times,x,y); 01923 square(0.45,-0.225,anti_color,times,x,y); 01924 01925 square(0.9,0.0,anti_color,times,x,y); 01926 square(0.675,0.0,anti_color,times,x,y); 01927 square(0.45,0.0,anti_color,times,x,y); 01928 01929 square(0.9,0.225,anti_color,times,x,y); 01930 square(0.675,0.225,anti_color,times,x,y); 01931 square(0.45,0.225,anti_color,times,x,y); 01932 01933 square(0.9,0.45,anti_color,times,x,y); 01934 square(0.675,0.45,anti_color,times,x,y); 01935 square(0.45,0.45,anti_color,times,x,y); 01936 square(0.225,0.45,anti_color,times,x,y); 01937 square(0.0,0.45,anti_color,times,x,y); 01938 square(-0.225,0.45,anti_color,times,x,y); 01939 01940 square(0.9,0.675,anti_color,times,x,y); 01941 square(0.675,0.675,anti_color,times,x,y); 01942 square(0.45,0.675,anti_color,times,x,y); 01943 square(0.225,0.675,anti_color,times,x,y); 01944 square(0.0,0.675,anti_color,times,x,y); 01945 square(-0.225,0.675,anti_color,times,x,y); 01946 01947 square(0.9,0.9,anti_color,times,x,y); 01948 square(0.675,0.9,anti_color,times,x,y); 01949 square(0.45,0.9,anti_color,times,x,y); 01950 square(0.225,0.9,anti_color,times,x,y); 01951 square(0.0,0.9,anti_color,times,x,y); 01952 square(-0.225,0.9,anti_color,times,x,y); 01953 01954 square(0.225,-0.9,color,times,x,y); 01955 square(0.0,-0.9,color,times,x,y); 01956 square(-0.225,-0.9,color,times,x,y); 01957 square(-0.45,-0.9,color,times,x,y); 01958 square(-0.675,-0.9,color,times,x,y); 01959 square(-0.9,-0.9,color,times,x,y); 01960 01961 square(0.225,-0.675,color,times,x,y); 01962 square(0.0,-0.675,color,times,x,y); 01963 square(-0.225,-0.675,color,times,x,y); 01964 square(-0.45,-0.675,color,times,x,y); 01965 square(-0.675,-0.675,color,times,x,y); 01966 square(-0.9,-0.675,color,times,x,y); 01967 01968 square(0.225,-0.45,color,times,x,y); 01969 square(0.0,-0.45,color,times,x,y); 01970 square(-0.225,-0.45,color,times,x,y); 01971 square(-0.45,-0.45,color,times,x,y); 01972 square(-0.675,-0.45,color,times,x,y); 01973 square(-0.9,-0.45,color,times,x,y); 01974 01975 square(0.225,-0.225,color,times,x,y); 01976 square(0.0,-0.225,color,times,x,y); 01977 square(-0.225,-0.225,color,times,x,y); 01978 square(-0.45,-0.225,color,times,x,y); 01979 square(-0.675,-0.225,color,times,x,y); 01980 square(-0.9,-0.225,color,times,x,y); 01981 01982 square(0.225,0.0,color,times,x,y); 01983 square(0.0,0.0,color,times,x,y); 01984 square(-0.225,0.0,color,times,x,y); 01985 square(-0.45,0.0,color,times,x,y); 01986 square(-0.675,0.0,color,times,x,y); 01987 square(-0.9,0.0,color,times,x,y); 01988 01989 square(0.225,0.225,color,times,x,y); 01990 square(0.0,0.225,color,times,x,y); 01991 square(-0.225,0.225,color,times,x,y); 01992 square(-0.45,0.225,color,times,x,y); 01993 square(-0.675,0.225,color,times,x,y); 01994 square(-0.9,0.225,color,times,x,y); 01995 }break; 01996 case 2: 01997 { 01998 /*square(-0.45,0.675,color,times,x,y); 01999 square(-0.225,0.675,color,times,x,y); 02000 square(0.0,0.675,color,times,x,y); 02001 square(0.225,0.675,color,times,x,y); 02002 square(0.45,0.675,color,times,x,y); 02003 square(0.675,0.675,color,times,x,y); 02004 02005 square(-0.45,0.45,color,times,x,y); 02006 square(-0.225,0.45,color,times,x,y); 02007 square(0.0,0.45,color,times,x,y); 02008 square(0.225,0.45,color,times,x,y); 02009 square(0.45,0.45,color,times,x,y); 02010 square(0.675,0.45,color,times,x,y); 02011 02012 square(-0.45,0.225,color,times,x,y); 02013 square(-0.225,0.225,color,times,x,y); 02014 square(0.0,0.225,color,times,x,y); 02015 square(0.225,0.225,color,times,x,y); 02016 square(0.45,0.225,color,times,x,y); 02017 square(0.675,0.225,color,times,x,y); 02018 02019 square(-0.45,0.0,color,times,x,y); 02020 square(-0.225,0.0,color,times,x,y); 02021 square(0.0,0.0,color,times,x,y); 02022 square(0.225,0.0,color,times,x,y); 02023 square(0.45,0.0,color,times,x,y); 02024 square(0.675,0.0,color,times,x,y); 02025 02026 square(-0.45,-0.225,color,times,x,y); 02027 square(-0.225,-0.225,color,times,x,y); 02028 square(0.0,-0.225,color,times,x,y); 02029 square(0.225,-0.225,color,times,x,y); 02030 square(0.45,-0.225,color,times,x,y); 02031 square(0.675,-0.225,color,times,x,y); 02032 02033 square(-0.45,-0.45,color,times,x,y); 02034 square(-0.225,-0.45,color,times,x,y); 02035 square(0.0,-0.45,color,times,x,y); 02036 square(0.225,-0.45,color,times,x,y); 02037 square(0.45,-0.45,color,times,x,y); 02038 square(0.675,-0.45,color,times,x,y);*/ 02039 /****************************************/ 02040 square(-1.125,0.0,anti_color,times,x,y); 02041 square(-0.9,0.0,anti_color,times,x,y); 02042 square(-0.675,0.0,anti_color,times,x,y); 02043 02044 square(-1.125,-0.225,anti_color,times,x,y); 02045 square(-0.9,-0.225,anti_color,times,x,y); 02046 square(-0.675,-0.225,anti_color,times,x,y); 02047 02048 square(-1.125,-0.45,anti_color,times,x,y); 02049 square(-0.9,-0.45,anti_color,times,x,y); 02050 square(-0.675,-0.45,anti_color,times,x,y); 02051 02052 square(-1.125,-0.675,anti_color,times,x,y); 02053 square(-0.9,-0.675,anti_color,times,x,y); 02054 square(-0.675,-0.675,anti_color,times,x,y); 02055 square(-0.45,-0.675,anti_color,times,x,y); 02056 square(-0.225,-0.675,anti_color,times,x,y); 02057 square(0.0,-0.675,anti_color,times,x,y); 02058 02059 square(-1.125,-0.9,anti_color,times,x,y); 02060 square(-0.9,-0.9,anti_color,times,x,y); 02061 square(-0.675,-0.9,anti_color,times,x,y); 02062 square(-0.45,-0.9,anti_color,times,x,y); 02063 square(-0.225,-0.9,anti_color,times,x,y); 02064 square(0.0,-0.9,anti_color,times,x,y); 02065 02066 square(-1.125,-1.125,anti_color,times,x,y); 02067 square(-0.9,-1.125,anti_color,times,x,y); 02068 square(-0.675,-1.125,anti_color,times,x,y); 02069 square(-0.45,-1.125,anti_color,times,x,y); 02070 square(-0.225,-1.125,anti_color,times,x,y); 02071 square(0.0,-1.125,anti_color,times,x,y); 02072 02073 square(-0.45,0.675,color,times,x,y); 02074 square(-0.225,0.675,color,times,x,y); 02075 square(0.0,0.675,color,times,x,y); 02076 square(0.225,0.675,color,times,x,y); 02077 square(0.45,0.675,color,times,x,y); 02078 square(0.675,0.675,color,times,x,y); 02079 02080 square(-0.45,0.45,color,times,x,y); 02081 square(-0.225,0.45,color,times,x,y); 02082 square(0.0,0.45,color,times,x,y); 02083 square(0.225,0.45,color,times,x,y); 02084 square(0.45,0.45,color,times,x,y); 02085 square(0.675,0.45,color,times,x,y); 02086 02087 square(-0.45,0.225,color,times,x,y); 02088 square(-0.225,0.225,color,times,x,y); 02089 square(0.0,0.225,color,times,x,y); 02090 square(0.225,0.225,color,times,x,y); 02091 square(0.45,0.225,color,times,x,y); 02092 square(0.675,0.225,color,times,x,y); 02093 02094 square(-0.45,0.0,color,times,x,y); 02095 square(-0.225,0.0,color,times,x,y); 02096 square(0.0,0.0,color,times,x,y); 02097 square(0.225,0.0,color,times,x,y); 02098 square(0.45,0.0,color,times,x,y); 02099 square(0.675,0.0,color,times,x,y); 02100 02101 square(-0.45,-0.225,color,times,x,y); 02102 square(-0.225,-0.225,color,times,x,y); 02103 square(0.0,-0.225,color,times,x,y); 02104 square(0.225,-0.225,color,times,x,y); 02105 square(0.45,-0.225,color,times,x,y); 02106 square(0.675,-0.225,color,times,x,y); 02107 02108 square(-0.45,-0.45,color,times,x,y); 02109 square(-0.225,-0.45,color,times,x,y); 02110 square(0.0,-0.45,color,times,x,y); 02111 square(0.225,-0.45,color,times,x,y); 02112 square(0.45,-0.45,color,times,x,y); 02113 square(0.675,-0.45,color,times,x,y); 02114 }break; 02115 case 3: 02116 { 02117 /*square(0.225,0.675,color,times,x,y); 02118 square(0.0,0.675,color,times,x,y); 02119 square(-0.225,0.675,color,times,x,y); 02120 square(-0.45,0.675,color,times,x,y); 02121 square(-0.675,0.675,color,times,x,y); 02122 square(-0.9,0.675,color,times,x,y); 02123 02124 square(0.225,0.45,color,times,x,y); 02125 square(0.0,0.45,color,times,x,y); 02126 square(-0.225,0.45,color,times,x,y); 02127 square(-0.45,0.45,color,times,x,y); 02128 square(-0.675,0.45,color,times,x,y); 02129 square(-0.9,0.45,color,times,x,y); 02130 02131 square(0.225,0.225,color,times,x,y); 02132 square(0.0,0.225,color,times,x,y); 02133 square(-0.225,0.225,color,times,x,y); 02134 square(-0.45,0.225,color,times,x,y); 02135 square(-0.675,0.225,color,times,x,y); 02136 square(-0.9,0.225,color,times,x,y); 02137 02138 square(0.225,0.0,color,times,x,y); 02139 square(0.0,0.0,color,times,x,y); 02140 square(-0.225,0.0,color,times,x,y); 02141 square(-0.45,0.0,color,times,x,y); 02142 square(-0.675,0.0,color,times,x,y); 02143 square(-0.9,0.0,color,times,x,y); 02144 02145 square(0.225,-0.225,color,times,x,y); 02146 square(0.0,-0.225,color,times,x,y); 02147 square(-0.225,-0.225,color,times,x,y); 02148 square(-0.45,-0.225,color,times,x,y); 02149 square(-0.675,-0.225,color,times,x,y); 02150 square(-0.9,-0.225,color,times,x,y); 02151 02152 square(0.225,-0.45,color,times,x,y); 02153 square(0.0,-0.45,color,times,x,y); 02154 square(-0.225,-0.45,color,times,x,y); 02155 square(-0.45,-0.45,color,times,x,y); 02156 square(-0.675,-0.45,color,times,x,y); 02157 square(-0.9,-0.45,color,times,x,y);*/ 02158 /**************************************/ 02159 square(0.9,0.0,anti_color,times,x,y); 02160 square(0.675,0.0,anti_color,times,x,y); 02161 square(0.45,0.0,anti_color,times,x,y); 02162 02163 square(0.9,-0.225,anti_color,times,x,y); 02164 square(0.675,-0.225,anti_color,times,x,y); 02165 square(0.45,-0.225,anti_color,times,x,y); 02166 02167 square(0.9,-0.45,anti_color,times,x,y); 02168 square(0.675,-0.45,anti_color,times,x,y); 02169 square(0.45,-0.45,anti_color,times,x,y); 02170 02171 square(0.9,-0.675,anti_color,times,x,y); 02172 square(0.675,-0.675,anti_color,times,x,y); 02173 square(0.45,-0.675,anti_color,times,x,y); 02174 square(0.225,-0.675,anti_color,times,x,y); 02175 square(0.0,-0.675,anti_color,times,x,y); 02176 square(-0.225,-0.675,anti_color,times,x,y); 02177 02178 square(0.9,-0.9,anti_color,times,x,y); 02179 square(0.675,-0.9,anti_color,times,x,y); 02180 square(0.45,-0.9,anti_color,times,x,y); 02181 square(0.225,-0.9,anti_color,times,x,y); 02182 square(0.0,-0.9,anti_color,times,x,y); 02183 square(-0.225,-0.9,anti_color,times,x,y); 02184 02185 square(0.9,-1.125,anti_color,times,x,y); 02186 square(0.675,-1.125,anti_color,times,x,y); 02187 square(0.45,-1.125,anti_color,times,x,y); 02188 square(0.225,-1.125,anti_color,times,x,y); 02189 square(0.0,-1.125,anti_color,times,x,y); 02190 square(-0.225,-1.125,anti_color,times,x,y); 02191 02192 square(0.225,0.675,color,times,x,y); 02193 square(0.0,0.675,color,times,x,y); 02194 square(-0.225,0.675,color,times,x,y); 02195 square(-0.45,0.675,color,times,x,y); 02196 square(-0.675,0.675,color,times,x,y); 02197 square(-0.9,0.675,color,times,x,y); 02198 02199 square(0.225,0.45,color,times,x,y); 02200 square(0.0,0.45,color,times,x,y); 02201 square(-0.225,0.45,color,times,x,y); 02202 square(-0.45,0.45,color,times,x,y); 02203 square(-0.675,0.45,color,times,x,y); 02204 square(-0.9,0.45,color,times,x,y); 02205 02206 square(0.225,0.225,color,times,x,y); 02207 square(0.0,0.225,color,times,x,y); 02208 square(-0.225,0.225,color,times,x,y); 02209 square(-0.45,0.225,color,times,x,y); 02210 square(-0.675,0.225,color,times,x,y); 02211 square(-0.9,0.225,color,times,x,y); 02212 02213 square(0.225,0.0,color,times,x,y); 02214 square(0.0,0.0,color,times,x,y); 02215 square(-0.225,0.0,color,times,x,y); 02216 square(-0.45,0.0,color,times,x,y); 02217 square(-0.675,0.0,color,times,x,y); 02218 square(-0.9,0.0,color,times,x,y); 02219 02220 square(0.225,-0.225,color,times,x,y); 02221 square(0.0,-0.225,color,times,x,y); 02222 square(-0.225,-0.225,color,times,x,y); 02223 square(-0.45,-0.225,color,times,x,y); 02224 square(-0.675,-0.225,color,times,x,y); 02225 square(-0.9,-0.225,color,times,x,y); 02226 02227 square(0.225,-0.45,color,times,x,y); 02228 square(0.0,-0.45,color,times,x,y); 02229 square(-0.225,-0.45,color,times,x,y); 02230 square(-0.45,-0.45,color,times,x,y); 02231 square(-0.675,-0.45,color,times,x,y); 02232 square(-0.9,-0.45,color,times,x,y); 02233 }break; 02234 } 02235 } 02236 02237 void shape_Sq(int type, float x, float y, float color, float times) //New Shape 02238 { 02239 switch(type){ 02240 case 0: //New shape is Right 02241 { 02242 edge_col(0.675,-0.675,color,times,x,y); 02243 edge_col(0.675,-0.45,color,times,x,y); 02244 edge_col(0.675,-0.225,color,times,x,y); 02245 edge_col(0.675,0.0,color,times,x,y); 02246 edge_col(0.675,0.225,color,times,x,y); 02247 edge_col(0.675,0.45,color,times,x,y); 02248 02249 edge_col(-0.675,-0.675,color,times,x,y); 02250 edge_col(-0.675,-0.45,color,times,x,y); 02251 edge_col(-0.675,-0.225,color,times,x,y); 02252 edge_col(-0.675,0.0,color,times,x,y); 02253 edge_col(-0.675,0.225,color,times,x,y); 02254 edge_col(-0.675,0.45,color,times,x,y); 02255 02256 edge_row(0.45,0.675,color,times,x,y); 02257 edge_row(0.225,0.675,color,times,x,y); 02258 edge_row(0.0,0.675,color,times,x,y); 02259 edge_row(-0.225,0.675,color,times,x,y); 02260 edge_row(-0.45,0.675,color,times,x,y); 02261 edge_row(-0.675,0.675,color,times,x,y); 02262 02263 edge_row(0.45,-0.675,color,times,x,y); 02264 edge_row(0.225,-0.675,color,times,x,y); 02265 edge_row(0.0,-0.675,color,times,x,y); 02266 edge_row(-0.225,-0.675,color,times,x,y); 02267 edge_row(-0.45,-0.675,color,times,x,y); 02268 edge_row(-0.675,-0.675,color,times,x,y); 02269 }break; 02270 case 1:{ //Nwe shape is Left 02271 edge_col(-0.675,-0.675,color,times,x,y); 02272 edge_col(-0.675,-0.45,color,times,x,y); 02273 edge_col(-0.675,-0.225,color,times,x,y); 02274 edge_col(-0.675,0.0,color,times,x,y); 02275 edge_col(-0.675,0.225,color,times,x,y); 02276 edge_col(-0.675,0.45,color,times,x,y); 02277 02278 edge_col(0.675,-0.675,color,times,x,y); 02279 edge_col(0.675,-0.45,color,times,x,y); 02280 edge_col(0.675,-0.225,color,times,x,y); 02281 edge_col(0.675,0.0,color,times,x,y); 02282 edge_col(0.675,0.225,color,times,x,y); 02283 edge_col(0.675,0.45,color,times,x,y); 02284 02285 edge_row(-0.675,0.675,color,times,x,y); 02286 edge_row(-0.45,0.675,color,times,x,y); 02287 edge_row(-0.225,0.675,color,times,x,y); 02288 edge_row(0.0,0.675,color,times,x,y); 02289 edge_row(0.225,0.675,color,times,x,y); 02290 edge_row(0.45,0.675,color,times,x,y); 02291 02292 edge_row(-0.675,-0.675,color,times,x,y); 02293 edge_row(-0.45,-0.675,color,times,x,y); 02294 edge_row(-0.225,-0.675,color,times,x,y); 02295 edge_row(0.0,-0.675,color,times,x,y); 02296 edge_row(0.225,-0.675,color,times,x,y); 02297 edge_row(0.45,-0.675,color,times,x,y); 02298 }break; 02299 case 2:{ 02300 edge_col(0.675,0.45,color,times,x,y); 02301 edge_col(0.675,0.225,color,times,x,y); 02302 edge_col(0.675,0.0,color,times,x,y); 02303 edge_col(0.675,-0.225,color,times,x,y); 02304 edge_col(0.675,-0.45,color,times,x,y); 02305 edge_col(0.675,-0.675,color,times,x,y); 02306 //edge_row(-0.675,0.675,color,times,x,y); 02307 02308 edge_col(-0.675,0.45,color,times,x,y); 02309 edge_col(-0.675,0.225,color,times,x,y); 02310 edge_col(-0.675,0.0,color,times,x,y); 02311 edge_col(-0.675,-0.225,color,times,x,y); 02312 edge_col(-0.675,-0.45,color,times,x,y); 02313 edge_col(-0.675,-0.675,color,times,x,y); 02314 02315 edge_row(0.45,-0.675,color,times,x,y); 02316 edge_row(0.225,-0.675,color,times,x,y); 02317 edge_row(0.0,-0.675,color,times,x,y); 02318 edge_row(-0.225,-0.675,color,times,x,y); 02319 edge_row(-0.45,-0.675,color,times,x,y); 02320 edge_row(-0.675,-0.675,color,times,x,y); 02321 02322 edge_row(0.45,0.675,color,times,x,y); 02323 edge_row(0.225,0.675,color,times,x,y); 02324 edge_row(0.0,0.675,color,times,x,y); 02325 edge_row(-0.225,0.675,color,times,x,y); 02326 edge_row(-0.45,0.675,color,times,x,y); 02327 edge_row(-0.675,0.675,color,times,x,y); 02328 }break; 02329 case 3:{ 02330 edge_col(-0.675,0.45,color,times,x,y); 02331 edge_col(-0.675,0.225,color,times,x,y); 02332 edge_col(-0.675,0.0,color,times,x,y); 02333 edge_col(-0.675,-0.225,color,times,x,y); 02334 edge_col(-0.675,-0.45,color,times,x,y); 02335 edge_col(-0.675,-0.675,color,times,x,y); 02336 //edge_row(-0.675,0.675,color,times,x,y); 02337 02338 edge_col(0.675,0.45,color,times,x,y); 02339 edge_col(0.675,0.225,color,times,x,y); 02340 edge_col(0.675,0.0,color,times,x,y); 02341 edge_col(0.675,-0.225,color,times,x,y); 02342 edge_col(0.675,-0.45,color,times,x,y); 02343 edge_col(0.675,-0.675,color,times,x,y); 02344 02345 edge_row(-0.675,-0.675,color,times,x,y); 02346 edge_row(-0.45,-0.675,color,times,x,y); 02347 edge_row(-0.225,-0.675,color,times,x,y); 02348 edge_row(0.0,-0.675,color,times,x,y); 02349 edge_row(0.225,-0.675,color,times,x,y); 02350 edge_row(0.45,-0.675,color,times,x,y); 02351 02352 edge_row(-0.675,0.675,color,times,x,y); 02353 edge_row(-0.45,0.675,color,times,x,y); 02354 edge_row(-0.225,0.675,color,times,x,y); 02355 edge_row(0.0,0.675,color,times,x,y); 02356 edge_row(0.225,0.675,color,times,x,y); 02357 edge_row(0.45,0.675,color,times,x,y); 02358 }break; 02359 } 02360 } 02361 02362 void shape_New(int type, float x, float y, float color, float times) //New Shape 02363 { 02364 switch (type){ 02365 case 0: 02366 { 02367 edge_row(0.225,0.675,color,times,x,y); 02368 edge_row(0.45,0.675,color,times,x,y); 02369 02370 edge_row(-0.45,0.45,color,times,x,y); 02371 edge_row(-0.225,0.45,color,times,x,y); 02372 edge_row(0.0,0.45,color,times,x,y); 02373 02374 edge_row(-0.675,-0.225,color,times,x,y); 02375 02376 edge_row(-0.675,-0.675,color,times,x,y); 02377 edge_row(-0.45,-0.675,color,times,x,y); 02378 edge_row(-0.225,-0.675,color,times,x,y); 02379 edge_row(0.0,-0.675,color,times,x,y); 02380 edge_row(0.225,-0.675,color,times,x,y); 02381 edge_row(0.45,-0.675,color,times,x,y); 02382 02383 edge_col(-0.675,-0.675,color,times,x,y); 02384 edge_col(-0.675,-0.45,color,times,x,y); 02385 02386 edge_col(-0.45,-0.225,color,times,x,y); 02387 edge_col(-0.45,0.0,color,times,x,y); 02388 edge_col(-0.45,0.225,color,times,x,y); 02389 02390 edge_col(0.225,0.45,color,times,x,y); 02391 02392 edge_col(0.675,-0.675,color,times,x,y); 02393 edge_col(0.675,-0.45,color,times,x,y); 02394 edge_col(0.675,-0.225,color,times,x,y); 02395 edge_col(0.675,0.0,color,times,x,y); 02396 edge_col(0.675,0.225,color,times,x,y); 02397 edge_col(0.675,0.45,color,times,x,y); 02398 }break; 02399 case 1: 02400 { 02401 edge_row(-0.45,0.675,color,times,x,y); 02402 edge_row(-0.675,0.675,color,times,x,y); 02403 02404 edge_row(0.225,0.45,color,times,x,y); 02405 edge_row(0.0,0.45,color,times,x,y); 02406 edge_row(-0.225,0.45,color,times,x,y); 02407 02408 edge_row(0.45,-0.225,color,times,x,y); 02409 02410 edge_row(0.45,-0.675,color,times,x,y); 02411 edge_row(0.225,-0.675,color,times,x,y); 02412 edge_row(0.0,-0.675,color,times,x,y); 02413 edge_row(-0.225,-0.675,color,times,x,y); 02414 edge_row(-0.45,-0.675,color,times,x,y); 02415 edge_row(-0.675,-0.675,color,times,x,y); 02416 02417 edge_col(0.675,-0.675,color,times,x,y); 02418 edge_col(0.675,-0.45,color,times,x,y); 02419 02420 edge_col(0.45,-0.225,color,times,x,y); 02421 edge_col(0.45,0.0,color,times,x,y); 02422 edge_col(0.45,0.225,color,times,x,y); 02423 02424 edge_col(-0.225,0.45,color,times,x,y); 02425 02426 edge_col(-0.675,-0.675,color,times,x,y); 02427 edge_col(-0.675,-0.45,color,times,x,y); 02428 edge_col(-0.675,-0.225,color,times,x,y); 02429 edge_col(-0.675,0.0,color,times,x,y); 02430 edge_col(-0.675,0.225,color,times,x,y); 02431 edge_col(-0.675,0.45,color,times,x,y); 02432 }break; 02433 case 2: 02434 { 02435 edge_row(0.225,-0.675,color,times,x,y); 02436 edge_row(0.45,-0.675,color,times,x,y); 02437 02438 edge_row(-0.45,-0.45,color,times,x,y); 02439 edge_row(-0.225,-0.45,color,times,x,y); 02440 edge_row(0.0,-0.45,color,times,x,y); 02441 02442 edge_row(-0.675,0.225,color,times,x,y); 02443 02444 edge_row(-0.675,0.675,color,times,x,y); 02445 edge_row(-0.45,0.675,color,times,x,y); 02446 edge_row(-0.225,0.675,color,times,x,y); 02447 edge_row(0.0,0.675,color,times,x,y); 02448 edge_row(0.225,0.675,color,times,x,y); 02449 edge_row(0.45,0.675,color,times,x,y); 02450 02451 edge_col(-0.675,0.45,color,times,x,y); 02452 edge_col(-0.675,0.225,color,times,x,y); 02453 02454 edge_col(-0.45,0.0,color,times,x,y); 02455 edge_col(-0.45,-0.225,color,times,x,y); 02456 edge_col(-0.45,-0.45,color,times,x,y); 02457 02458 edge_col(0.225,-0.675,color,times,x,y); 02459 02460 edge_col(0.675,0.45,color,times,x,y); 02461 edge_col(0.675,0.225,color,times,x,y); 02462 edge_col(0.675,0.0,color,times,x,y); 02463 edge_col(0.675,-0.225,color,times,x,y); 02464 edge_col(0.675,-0.45,color,times,x,y); 02465 edge_col(0.675,-0.675,color,times,x,y); 02466 }break; 02467 case 3: 02468 { 02469 edge_row(-0.45,-0.675,color,times,x,y); 02470 edge_row(-0.675,-0.675,color,times,x,y); 02471 02472 edge_row(0.225,-0.45,color,times,x,y); 02473 edge_row(0.0,-0.45,color,times,x,y); 02474 edge_row(-0.225,-0.45,color,times,x,y); 02475 02476 edge_row(0.45,0.225,color,times,x,y); 02477 02478 edge_row(0.45,0.675,color,times,x,y); 02479 edge_row(0.225,0.675,color,times,x,y); 02480 edge_row(0.0,0.675,color,times,x,y); 02481 edge_row(-0.225,0.675,color,times,x,y); 02482 edge_row(-0.45,0.675,color,times,x,y); 02483 edge_row(-0.675,0.675,color,times,x,y); 02484 02485 edge_col(0.675,0.45,color,times,x,y); 02486 edge_col(0.675,0.225,color,times,x,y); 02487 02488 edge_col(0.45,0.0,color,times,x,y); 02489 edge_col(0.45,-0.225,color,times,x,y); 02490 edge_col(0.45,-0.45,color,times,x,y); 02491 02492 edge_col(-0.225,-0.675,color,times,x,y); 02493 02494 edge_col(-0.675,0.45,color,times,x,y); 02495 edge_col(-0.675,0.225,color,times,x,y); 02496 edge_col(-0.675,0.0,color,times,x,y); 02497 edge_col(-0.675,-0.225,color,times,x,y); 02498 edge_col(-0.675,-0.45,color,times,x,y); 02499 edge_col(-0.675,-0.675,color,times,x,y); 02500 }break; 02501 } 02502 } 02503 02504 void shape_L(int type, float x, float y, float color, float times) //L Shape 02505 { 02506 switch (type){ //L shape is Left 02507 case 0: 02508 { 02509 edge_row(-0.675,0.675,color,times,x,y); 02510 edge_row(-0.45,0.675,color,times,x,y); 02511 edge_row(-0.225,0.675,color,times,x,y); 02512 edge_row(0.0,0.675,color,times,x,y); 02513 edge_row(0.225,0.675,color,times,x,y); 02514 edge_row(0.45,0.675,color,times,x,y); 02515 02516 edge_row(0.0,0.0,color,times,x,y); 02517 edge_row(0.225,0.0,color,times,x,y); 02518 edge_row(0.45,0.0,color,times,x,y); 02519 02520 edge_row(-0.675,-0.675,color,times,x,y); 02521 edge_row(-0.45,-0.675,color,times,x,y); 02522 edge_row(-0.225,-0.675,color,times,x,y); 02523 02524 edge_col(-0.675,-0.675,color,times,x,y); 02525 edge_col(-0.675,-0.45,color,times,x,y); 02526 edge_col(-0.675,-0.225,color,times,x,y); 02527 edge_col(-0.675,0.0,color,times,x,y); 02528 edge_col(-0.675,0.225,color,times,x,y); 02529 edge_col(-0.675,0.45,color,times,x,y); 02530 02531 edge_col(0.0,-0.675,color,times,x,y); 02532 edge_col(0.0,-0.45,color,times,x,y); 02533 edge_col(0.0,-0.225,color,times,x,y); 02534 02535 edge_col(0.675,0.0,color,times,x,y); 02536 edge_col(0.675,0.225,color,times,x,y); 02537 edge_col(0.675,0.45,color,times,x,y); 02538 }break; 02539 case 1:{ //L shape is Right 02540 edge_row(0.45,0.675,color,times,x,y); 02541 edge_row(0.225,0.675,color,times,x,y); 02542 edge_row(0.0,0.675,color,times,x,y); 02543 edge_row(-0.225,0.675,color,times,x,y); 02544 edge_row(-0.45,0.675,color,times,x,y); 02545 edge_row(-0.675,0.675,color,times,x,y); 02546 02547 edge_row(-0.225,0.0,color,times,x,y); 02548 edge_row(-0.45,0.0,color,times,x,y); 02549 edge_row(-0.675,0.0,color,times,x,y); 02550 02551 edge_row(0.45,-0.675,color,times,x,y); 02552 edge_row(0.225,-0.675,color,times,x,y); 02553 edge_row(0.0,-0.675,color,times,x,y); 02554 02555 edge_col(0.675,-0.675,color,times,x,y); 02556 edge_col(0.675,-0.45,color,times,x,y); 02557 edge_col(0.675,-0.225,color,times,x,y); 02558 edge_col(0.675,0.0,color,times,x,y); 02559 edge_col(0.675,0.225,color,times,x,y); 02560 edge_col(0.675,0.45,color,times,x,y); 02561 02562 edge_col(0.0,-0.675,color,times,x,y); 02563 edge_col(0.0,-0.45,color,times,x,y); 02564 edge_col(0.0,-0.225,color,times,x,y); 02565 02566 edge_col(-0.675,0.0,color,times,x,y); 02567 edge_col(-0.675,0.225,color,times,x,y); 02568 edge_col(-0.675,0.45,color,times,x,y); 02569 }break; 02570 case 2:{ 02571 edge_row(-0.675,-0.675,color,times,x,y); 02572 edge_row(-0.45,-0.675,color,times,x,y); 02573 edge_row(-0.225,-0.675,color,times,x,y); 02574 edge_row(0.0,-0.675,color,times,x,y); 02575 edge_row(0.225,-0.675,color,times,x,y); 02576 edge_row(0.45,-0.675,color,times,x,y); 02577 02578 edge_row(0.0,0.0,color,times,x,y); 02579 edge_row(0.225,0.0,color,times,x,y); 02580 edge_row(0.45,0.0,color,times,x,y); 02581 02582 edge_row(-0.675,0.675,color,times,x,y); 02583 edge_row(-0.45,0.675,color,times,x,y); 02584 edge_row(-0.225,0.675,color,times,x,y); 02585 02586 edge_col(-0.675,0.45,color,times,x,y); 02587 edge_col(-0.675,0.225,color,times,x,y); 02588 edge_col(-0.675,0.0,color,times,x,y); 02589 edge_col(-0.675,-0.225,color,times,x,y); 02590 edge_col(-0.675,-0.45,color,times,x,y); 02591 edge_col(-0.675,-0.675,color,times,x,y); 02592 02593 edge_col(0.0,0.45,color,times,x,y); 02594 edge_col(0.0,0.225,color,times,x,y); 02595 edge_col(0.0,0.0,color,times,x,y); 02596 02597 edge_col(0.675,-0.225,color,times,x,y); 02598 edge_col(0.675,-0.45,color,times,x,y); 02599 edge_col(0.675,-0.675,color,times,x,y); 02600 }break; 02601 case 3:{ 02602 edge_row(0.45,-0.675,color,times,x,y); 02603 edge_row(0.225,-0.675,color,times,x,y); 02604 edge_row(0.0,-0.675,color,times,x,y); 02605 edge_row(-0.225,-0.675,color,times,x,y); 02606 edge_row(-0.45,-0.675,color,times,x,y); 02607 edge_row(-0.675,-0.675,color,times,x,y); 02608 02609 edge_row(-0.225,0.0,color,times,x,y); 02610 edge_row(-0.45,0.0,color,times,x,y); 02611 edge_row(-0.675,0.0,color,times,x,y); 02612 02613 edge_row(0.45,0.675,color,times,x,y); 02614 edge_row(0.225,0.675,color,times,x,y); 02615 edge_row(0.0,0.675,color,times,x,y); 02616 02617 edge_col(0.675,0.45,color,times,x,y); 02618 edge_col(0.675,0.225,color,times,x,y); 02619 edge_col(0.675,0.0,color,times,x,y); 02620 edge_col(0.675,-0.225,color,times,x,y); 02621 edge_col(0.675,-0.45,color,times,x,y); 02622 edge_col(0.675,-0.675,color,times,x,y); 02623 02624 edge_col(0.0,0.45,color,times,x,y); 02625 edge_col(0.0,0.225,color,times,x,y); 02626 edge_col(0.0,0.0,color,times,x,y); 02627 02628 edge_col(-0.675,-0.225,color,times,x,y); 02629 edge_col(-0.675,-0.45,color,times,x,y); 02630 edge_col(-0.675,-0.675,color,times,x,y); 02631 }break; 02632 } 02633 } 02634 02635 void blue_Sq(int type, float x, float y, float color, float times) //Square Shape 02636 { 02637 switch(type){ 02638 case 0: //New shape is Right 02639 { 02640 blue_edge_col(0.675,-0.675,color,times,x,y); 02641 blue_edge_col(0.675,-0.45,color,times,x,y); 02642 blue_edge_col(0.675,-0.225,color,times,x,y); 02643 blue_edge_col(0.675,0.0,color,times,x,y); 02644 blue_edge_col(0.675,0.225,color,times,x,y); 02645 blue_edge_col(0.675,0.45,color,times,x,y); 02646 02647 blue_edge_col(-0.675,-0.675,color,times,x,y); 02648 blue_edge_col(-0.675,-0.45,color,times,x,y); 02649 blue_edge_col(-0.675,-0.225,color,times,x,y); 02650 blue_edge_col(-0.675,0.0,color,times,x,y); 02651 blue_edge_col(-0.675,0.225,color,times,x,y); 02652 blue_edge_col(-0.675,0.45,color,times,x,y); 02653 02654 blue_edge_row(0.45,0.675,color,times,x,y); 02655 blue_edge_row(0.225,0.675,color,times,x,y); 02656 blue_edge_row(0.0,0.675,color,times,x,y); 02657 blue_edge_row(-0.225,0.675,color,times,x,y); 02658 blue_edge_row(-0.45,0.675,color,times,x,y); 02659 blue_edge_row(-0.675,0.675,color,times,x,y); 02660 02661 blue_edge_row(0.45,-0.675,color,times,x,y); 02662 blue_edge_row(0.225,-0.675,color,times,x,y); 02663 blue_edge_row(0.0,-0.675,color,times,x,y); 02664 blue_edge_row(-0.225,-0.675,color,times,x,y); 02665 blue_edge_row(-0.45,-0.675,color,times,x,y); 02666 blue_edge_row(-0.675,-0.675,color,times,x,y); 02667 }break; 02668 case 1:{ //Nwe shape is Left 02669 blue_edge_col(-0.675,-0.675,color,times,x,y); 02670 blue_edge_col(-0.675,-0.45,color,times,x,y); 02671 blue_edge_col(-0.675,-0.225,color,times,x,y); 02672 blue_edge_col(-0.675,0.0,color,times,x,y); 02673 blue_edge_col(-0.675,0.225,color,times,x,y); 02674 blue_edge_col(-0.675,0.45,color,times,x,y); 02675 02676 blue_edge_col(0.675,-0.675,color,times,x,y); 02677 blue_edge_col(0.675,-0.45,color,times,x,y); 02678 blue_edge_col(0.675,-0.225,color,times,x,y); 02679 blue_edge_col(0.675,0.0,color,times,x,y); 02680 blue_edge_col(0.675,0.225,color,times,x,y); 02681 blue_edge_col(0.675,0.45,color,times,x,y); 02682 02683 blue_edge_row(-0.675,0.675,color,times,x,y); 02684 blue_edge_row(-0.45,0.675,color,times,x,y); 02685 blue_edge_row(-0.225,0.675,color,times,x,y); 02686 blue_edge_row(0.0,0.675,color,times,x,y); 02687 blue_edge_row(0.225,0.675,color,times,x,y); 02688 blue_edge_row(0.45,0.675,color,times,x,y); 02689 02690 blue_edge_row(-0.675,-0.675,color,times,x,y); 02691 blue_edge_row(-0.45,-0.675,color,times,x,y); 02692 blue_edge_row(-0.225,-0.675,color,times,x,y); 02693 blue_edge_row(0.0,-0.675,color,times,x,y); 02694 blue_edge_row(0.225,-0.675,color,times,x,y); 02695 blue_edge_row(0.45,-0.675,color,times,x,y); 02696 }break; 02697 case 2:{ 02698 blue_edge_col(0.675,0.45,color,times,x,y); 02699 blue_edge_col(0.675,0.225,color,times,x,y); 02700 blue_edge_col(0.675,0.0,color,times,x,y); 02701 blue_edge_col(0.675,-0.225,color,times,x,y); 02702 blue_edge_col(0.675,-0.45,color,times,x,y); 02703 blue_edge_col(0.675,-0.675,color,times,x,y); 02704 //edge_row(-0.675,0.675,color,times,x,y); 02705 02706 blue_edge_col(-0.675,0.45,color,times,x,y); 02707 blue_edge_col(-0.675,0.225,color,times,x,y); 02708 blue_edge_col(-0.675,0.0,color,times,x,y); 02709 blue_edge_col(-0.675,-0.225,color,times,x,y); 02710 blue_edge_col(-0.675,-0.45,color,times,x,y); 02711 blue_edge_col(-0.675,-0.675,color,times,x,y); 02712 02713 blue_edge_row(0.45,-0.675,color,times,x,y); 02714 blue_edge_row(0.225,-0.675,color,times,x,y); 02715 blue_edge_row(0.0,-0.675,color,times,x,y); 02716 blue_edge_row(-0.225,-0.675,color,times,x,y); 02717 blue_edge_row(-0.45,-0.675,color,times,x,y); 02718 blue_edge_row(-0.675,-0.675,color,times,x,y); 02719 02720 blue_edge_row(0.45,0.675,color,times,x,y); 02721 blue_edge_row(0.225,0.675,color,times,x,y); 02722 blue_edge_row(0.0,0.675,color,times,x,y); 02723 blue_edge_row(-0.225,0.675,color,times,x,y); 02724 blue_edge_row(-0.45,0.675,color,times,x,y); 02725 blue_edge_row(-0.675,0.675,color,times,x,y); 02726 }break; 02727 case 3:{ 02728 blue_edge_col(-0.675,0.45,color,times,x,y); 02729 blue_edge_col(-0.675,0.225,color,times,x,y); 02730 blue_edge_col(-0.675,0.0,color,times,x,y); 02731 blue_edge_col(-0.675,-0.225,color,times,x,y); 02732 blue_edge_col(-0.675,-0.45,color,times,x,y); 02733 blue_edge_col(-0.675,-0.675,color,times,x,y); 02734 //edge_row(-0.675,0.675,color,times,x,y); 02735 02736 blue_edge_col(0.675,0.45,color,times,x,y); 02737 blue_edge_col(0.675,0.225,color,times,x,y); 02738 blue_edge_col(0.675,0.0,color,times,x,y); 02739 blue_edge_col(0.675,-0.225,color,times,x,y); 02740 blue_edge_col(0.675,-0.45,color,times,x,y); 02741 blue_edge_col(0.675,-0.675,color,times,x,y); 02742 02743 blue_edge_row(-0.675,-0.675,color,times,x,y); 02744 blue_edge_row(-0.45,-0.675,color,times,x,y); 02745 blue_edge_row(-0.225,-0.675,color,times,x,y); 02746 blue_edge_row(0.0,-0.675,color,times,x,y); 02747 blue_edge_row(0.225,-0.675,color,times,x,y); 02748 blue_edge_row(0.45,-0.675,color,times,x,y); 02749 02750 blue_edge_row(-0.675,0.675,color,times,x,y); 02751 blue_edge_row(-0.45,0.675,color,times,x,y); 02752 blue_edge_row(-0.225,0.675,color,times,x,y); 02753 blue_edge_row(0.0,0.675,color,times,x,y); 02754 blue_edge_row(0.225,0.675,color,times,x,y); 02755 blue_edge_row(0.45,0.675,color,times,x,y); 02756 }break; 02757 } 02758 } 02759 02760 void blue_New(int type, float x, float y, float color, float times) //New Shape 02761 { 02762 switch (type){ 02763 case 0: 02764 { 02765 blue_edge_row(0.225,0.675,color,times,x,y); 02766 blue_edge_row(0.45,0.675,color,times,x,y); 02767 02768 blue_edge_row(-0.45,0.45,color,times,x,y); 02769 blue_edge_row(-0.225,0.45,color,times,x,y); 02770 blue_edge_row(0.0,0.45,color,times,x,y); 02771 02772 blue_edge_row(-0.675,-0.225,color,times,x,y); 02773 02774 blue_edge_row(-0.675,-0.675,color,times,x,y); 02775 blue_edge_row(-0.45,-0.675,color,times,x,y); 02776 blue_edge_row(-0.225,-0.675,color,times,x,y); 02777 blue_edge_row(0.0,-0.675,color,times,x,y); 02778 blue_edge_row(0.225,-0.675,color,times,x,y); 02779 blue_edge_row(0.45,-0.675,color,times,x,y); 02780 02781 blue_edge_col(-0.675,-0.675,color,times,x,y); 02782 blue_edge_col(-0.675,-0.45,color,times,x,y); 02783 02784 blue_edge_col(-0.45,-0.225,color,times,x,y); 02785 blue_edge_col(-0.45,0.0,color,times,x,y); 02786 blue_edge_col(-0.45,0.225,color,times,x,y); 02787 02788 blue_edge_col(0.225,0.45,color,times,x,y); 02789 02790 blue_edge_col(0.675,-0.675,color,times,x,y); 02791 blue_edge_col(0.675,-0.45,color,times,x,y); 02792 blue_edge_col(0.675,-0.225,color,times,x,y); 02793 blue_edge_col(0.675,0.0,color,times,x,y); 02794 blue_edge_col(0.675,0.225,color,times,x,y); 02795 blue_edge_col(0.675,0.45,color,times,x,y); 02796 }break; 02797 case 1: 02798 { 02799 blue_edge_row(-0.45,0.675,color,times,x,y); 02800 blue_edge_row(-0.675,0.675,color,times,x,y); 02801 02802 blue_edge_row(0.225,0.45,color,times,x,y); 02803 blue_edge_row(0.0,0.45,color,times,x,y); 02804 blue_edge_row(-0.225,0.45,color,times,x,y); 02805 02806 blue_edge_row(0.45,-0.225,color,times,x,y); 02807 02808 blue_edge_row(0.45,-0.675,color,times,x,y); 02809 blue_edge_row(0.225,-0.675,color,times,x,y); 02810 blue_edge_row(0.0,-0.675,color,times,x,y); 02811 blue_edge_row(-0.225,-0.675,color,times,x,y); 02812 blue_edge_row(-0.45,-0.675,color,times,x,y); 02813 blue_edge_row(-0.675,-0.675,color,times,x,y); 02814 02815 blue_edge_col(0.675,-0.675,color,times,x,y); 02816 blue_edge_col(0.675,-0.45,color,times,x,y); 02817 02818 blue_edge_col(0.45,-0.225,color,times,x,y); 02819 blue_edge_col(0.45,0.0,color,times,x,y); 02820 blue_edge_col(0.45,0.225,color,times,x,y); 02821 02822 blue_edge_col(-0.225,0.45,color,times,x,y); 02823 02824 blue_edge_col(-0.675,-0.675,color,times,x,y); 02825 blue_edge_col(-0.675,-0.45,color,times,x,y); 02826 blue_edge_col(-0.675,-0.225,color,times,x,y); 02827 blue_edge_col(-0.675,0.0,color,times,x,y); 02828 blue_edge_col(-0.675,0.225,color,times,x,y); 02829 blue_edge_col(-0.675,0.45,color,times,x,y); 02830 }break; 02831 case 2: 02832 { 02833 blue_edge_row(0.225,-0.675,color,times,x,y); 02834 blue_edge_row(0.45,-0.675,color,times,x,y); 02835 02836 blue_edge_row(-0.45,-0.45,color,times,x,y); 02837 blue_edge_row(-0.225,-0.45,color,times,x,y); 02838 blue_edge_row(0.0,-0.45,color,times,x,y); 02839 02840 blue_edge_row(-0.675,0.225,color,times,x,y); 02841 02842 blue_edge_row(-0.675,0.675,color,times,x,y); 02843 blue_edge_row(-0.45,0.675,color,times,x,y); 02844 blue_edge_row(-0.225,0.675,color,times,x,y); 02845 blue_edge_row(0.0,0.675,color,times,x,y); 02846 blue_edge_row(0.225,0.675,color,times,x,y); 02847 blue_edge_row(0.45,0.675,color,times,x,y); 02848 02849 blue_edge_col(-0.675,0.45,color,times,x,y); 02850 blue_edge_col(-0.675,0.225,color,times,x,y); 02851 02852 blue_edge_col(-0.45,0.0,color,times,x,y); 02853 blue_edge_col(-0.45,-0.225,color,times,x,y); 02854 blue_edge_col(-0.45,-0.45,color,times,x,y); 02855 02856 blue_edge_col(0.225,-0.675,color,times,x,y); 02857 02858 blue_edge_col(0.675,0.45,color,times,x,y); 02859 blue_edge_col(0.675,0.225,color,times,x,y); 02860 blue_edge_col(0.675,0.0,color,times,x,y); 02861 blue_edge_col(0.675,-0.225,color,times,x,y); 02862 blue_edge_col(0.675,-0.45,color,times,x,y); 02863 blue_edge_col(0.675,-0.675,color,times,x,y); 02864 }break; 02865 case 3: 02866 { 02867 blue_edge_row(-0.45,-0.675,color,times,x,y); 02868 blue_edge_row(-0.675,-0.675,color,times,x,y); 02869 02870 blue_edge_row(0.225,-0.45,color,times,x,y); 02871 blue_edge_row(0.0,-0.45,color,times,x,y); 02872 blue_edge_row(-0.225,-0.45,color,times,x,y); 02873 02874 blue_edge_row(0.45,0.225,color,times,x,y); 02875 02876 blue_edge_row(0.45,0.675,color,times,x,y); 02877 blue_edge_row(0.225,0.675,color,times,x,y); 02878 blue_edge_row(0.0,0.675,color,times,x,y); 02879 blue_edge_row(-0.225,0.675,color,times,x,y); 02880 blue_edge_row(-0.45,0.675,color,times,x,y); 02881 blue_edge_row(-0.675,0.675,color,times,x,y); 02882 02883 blue_edge_col(0.675,0.45,color,times,x,y); 02884 blue_edge_col(0.675,0.225,color,times,x,y); 02885 02886 blue_edge_col(0.45,0.0,color,times,x,y); 02887 blue_edge_col(0.45,-0.225,color,times,x,y); 02888 blue_edge_col(0.45,-0.45,color,times,x,y); 02889 02890 blue_edge_col(-0.225,-0.675,color,times,x,y); 02891 02892 blue_edge_col(-0.675,0.45,color,times,x,y); 02893 blue_edge_col(-0.675,0.225,color,times,x,y); 02894 blue_edge_col(-0.675,0.0,color,times,x,y); 02895 blue_edge_col(-0.675,-0.225,color,times,x,y); 02896 blue_edge_col(-0.675,-0.45,color,times,x,y); 02897 blue_edge_col(-0.675,-0.675,color,times,x,y); 02898 }break; 02899 } 02900 } 02901 02902 void blue_L(int type, float x, float y, float color, float times) //L Shape 02903 { 02904 switch (type){ //L shape is Left 02905 case 0: 02906 { 02907 blue_edge_row(-0.675,0.675,color,times,x,y); 02908 blue_edge_row(-0.45,0.675,color,times,x,y); 02909 blue_edge_row(-0.225,0.675,color,times,x,y); 02910 blue_edge_row(0.0,0.675,color,times,x,y); 02911 blue_edge_row(0.225,0.675,color,times,x,y); 02912 blue_edge_row(0.45,0.675,color,times,x,y); 02913 02914 blue_edge_row(0.0,0.0,color,times,x,y); 02915 blue_edge_row(0.225,0.0,color,times,x,y); 02916 blue_edge_row(0.45,0.0,color,times,x,y); 02917 02918 blue_edge_row(-0.675,-0.675,color,times,x,y); 02919 blue_edge_row(-0.45,-0.675,color,times,x,y); 02920 blue_edge_row(-0.225,-0.675,color,times,x,y); 02921 02922 blue_edge_col(-0.675,-0.675,color,times,x,y); 02923 blue_edge_col(-0.675,-0.45,color,times,x,y); 02924 blue_edge_col(-0.675,-0.225,color,times,x,y); 02925 blue_edge_col(-0.675,0.0,color,times,x,y); 02926 blue_edge_col(-0.675,0.225,color,times,x,y); 02927 blue_edge_col(-0.675,0.45,color,times,x,y); 02928 02929 blue_edge_col(0.0,-0.675,color,times,x,y); 02930 blue_edge_col(0.0,-0.45,color,times,x,y); 02931 blue_edge_col(0.0,-0.225,color,times,x,y); 02932 02933 blue_edge_col(0.675,0.0,color,times,x,y); 02934 blue_edge_col(0.675,0.225,color,times,x,y); 02935 blue_edge_col(0.675,0.45,color,times,x,y); 02936 }break; 02937 case 1:{ //L shape is Right 02938 blue_edge_row(0.45,0.675,color,times,x,y); 02939 blue_edge_row(0.225,0.675,color,times,x,y); 02940 blue_edge_row(0.0,0.675,color,times,x,y); 02941 blue_edge_row(-0.225,0.675,color,times,x,y); 02942 blue_edge_row(-0.45,0.675,color,times,x,y); 02943 blue_edge_row(-0.675,0.675,color,times,x,y); 02944 02945 blue_edge_row(-0.225,0.0,color,times,x,y); 02946 blue_edge_row(-0.45,0.0,color,times,x,y); 02947 blue_edge_row(-0.675,0.0,color,times,x,y); 02948 02949 blue_edge_row(0.45,-0.675,color,times,x,y); 02950 blue_edge_row(0.225,-0.675,color,times,x,y); 02951 blue_edge_row(0.0,-0.675,color,times,x,y); 02952 02953 blue_edge_col(0.675,-0.675,color,times,x,y); 02954 blue_edge_col(0.675,-0.45,color,times,x,y); 02955 blue_edge_col(0.675,-0.225,color,times,x,y); 02956 blue_edge_col(0.675,0.0,color,times,x,y); 02957 blue_edge_col(0.675,0.225,color,times,x,y); 02958 blue_edge_col(0.675,0.45,color,times,x,y); 02959 02960 blue_edge_col(0.0,-0.675,color,times,x,y); 02961 blue_edge_col(0.0,-0.45,color,times,x,y); 02962 blue_edge_col(0.0,-0.225,color,times,x,y); 02963 02964 blue_edge_col(-0.675,0.0,color,times,x,y); 02965 blue_edge_col(-0.675,0.225,color,times,x,y); 02966 blue_edge_col(-0.675,0.45,color,times,x,y); 02967 }break; 02968 case 2:{ 02969 blue_edge_row(-0.675,-0.675,color,times,x,y); 02970 blue_edge_row(-0.45,-0.675,color,times,x,y); 02971 blue_edge_row(-0.225,-0.675,color,times,x,y); 02972 blue_edge_row(0.0,-0.675,color,times,x,y); 02973 blue_edge_row(0.225,-0.675,color,times,x,y); 02974 blue_edge_row(0.45,-0.675,color,times,x,y); 02975 02976 blue_edge_row(0.0,0.0,color,times,x,y); 02977 blue_edge_row(0.225,0.0,color,times,x,y); 02978 blue_edge_row(0.45,0.0,color,times,x,y); 02979 02980 blue_edge_row(-0.675,0.675,color,times,x,y); 02981 blue_edge_row(-0.45,0.675,color,times,x,y); 02982 blue_edge_row(-0.225,0.675,color,times,x,y); 02983 02984 blue_edge_col(-0.675,0.45,color,times,x,y); 02985 blue_edge_col(-0.675,0.225,color,times,x,y); 02986 blue_edge_col(-0.675,0.0,color,times,x,y); 02987 blue_edge_col(-0.675,-0.225,color,times,x,y); 02988 blue_edge_col(-0.675,-0.45,color,times,x,y); 02989 blue_edge_col(-0.675,-0.675,color,times,x,y); 02990 02991 blue_edge_col(0.0,0.45,color,times,x,y); 02992 blue_edge_col(0.0,0.225,color,times,x,y); 02993 blue_edge_col(0.0,0.0,color,times,x,y); 02994 02995 blue_edge_col(0.675,-0.225,color,times,x,y); 02996 blue_edge_col(0.675,-0.45,color,times,x,y); 02997 blue_edge_col(0.675,-0.675,color,times,x,y); 02998 }break; 02999 case 3:{ 03000 blue_edge_row(0.45,-0.675,color,times,x,y); 03001 blue_edge_row(0.225,-0.675,color,times,x,y); 03002 blue_edge_row(0.0,-0.675,color,times,x,y); 03003 blue_edge_row(-0.225,-0.675,color,times,x,y); 03004 blue_edge_row(-0.45,-0.675,color,times,x,y); 03005 blue_edge_row(-0.675,-0.675,color,times,x,y); 03006 03007 blue_edge_row(-0.225,0.0,color,times,x,y); 03008 blue_edge_row(-0.45,0.0,color,times,x,y); 03009 blue_edge_row(-0.675,0.0,color,times,x,y); 03010 03011 blue_edge_row(0.45,0.675,color,times,x,y); 03012 blue_edge_row(0.225,0.675,color,times,x,y); 03013 blue_edge_row(0.0,0.675,color,times,x,y); 03014 03015 blue_edge_col(0.675,0.45,color,times,x,y); 03016 blue_edge_col(0.675,0.225,color,times,x,y); 03017 blue_edge_col(0.675,0.0,color,times,x,y); 03018 blue_edge_col(0.675,-0.225,color,times,x,y); 03019 blue_edge_col(0.675,-0.45,color,times,x,y); 03020 blue_edge_col(0.675,-0.675,color,times,x,y); 03021 03022 blue_edge_col(0.0,0.45,color,times,x,y); 03023 blue_edge_col(0.0,0.225,color,times,x,y); 03024 blue_edge_col(0.0,0.0,color,times,x,y); 03025 03026 blue_edge_col(-0.675,-0.225,color,times,x,y); 03027 blue_edge_col(-0.675,-0.45,color,times,x,y); 03028 blue_edge_col(-0.675,-0.675,color,times,x,y); 03029 }break; 03030 } 03031 } 03032 03033 void red_Sq(int type, float x, float y, float color, float times) //Square Shape 03034 { 03035 switch(type){ 03036 case 0: //New shape is Right 03037 { 03038 red_edge_col(0.675,-0.675,color,times,x,y); 03039 red_edge_col(0.675,-0.45,color,times,x,y); 03040 red_edge_col(0.675,-0.225,color,times,x,y); 03041 red_edge_col(0.675,0.0,color,times,x,y); 03042 red_edge_col(0.675,0.225,color,times,x,y); 03043 red_edge_col(0.675,0.45,color,times,x,y); 03044 03045 red_edge_col(-0.675,-0.675,color,times,x,y); 03046 red_edge_col(-0.675,-0.45,color,times,x,y); 03047 red_edge_col(-0.675,-0.225,color,times,x,y); 03048 red_edge_col(-0.675,0.0,color,times,x,y); 03049 red_edge_col(-0.675,0.225,color,times,x,y); 03050 red_edge_col(-0.675,0.45,color,times,x,y); 03051 03052 red_edge_row(0.45,0.675,color,times,x,y); 03053 red_edge_row(0.225,0.675,color,times,x,y); 03054 red_edge_row(0.0,0.675,color,times,x,y); 03055 red_edge_row(-0.225,0.675,color,times,x,y); 03056 red_edge_row(-0.45,0.675,color,times,x,y); 03057 red_edge_row(-0.675,0.675,color,times,x,y); 03058 03059 red_edge_row(0.45,-0.675,color,times,x,y); 03060 red_edge_row(0.225,-0.675,color,times,x,y); 03061 red_edge_row(0.0,-0.675,color,times,x,y); 03062 red_edge_row(-0.225,-0.675,color,times,x,y); 03063 red_edge_row(-0.45,-0.675,color,times,x,y); 03064 red_edge_row(-0.675,-0.675,color,times,x,y); 03065 }break; 03066 case 1:{ //Nwe shape is Left 03067 red_edge_col(-0.675,-0.675,color,times,x,y); 03068 red_edge_col(-0.675,-0.45,color,times,x,y); 03069 red_edge_col(-0.675,-0.225,color,times,x,y); 03070 red_edge_col(-0.675,0.0,color,times,x,y); 03071 red_edge_col(-0.675,0.225,color,times,x,y); 03072 red_edge_col(-0.675,0.45,color,times,x,y); 03073 03074 red_edge_col(0.675,-0.675,color,times,x,y); 03075 red_edge_col(0.675,-0.45,color,times,x,y); 03076 red_edge_col(0.675,-0.225,color,times,x,y); 03077 red_edge_col(0.675,0.0,color,times,x,y); 03078 red_edge_col(0.675,0.225,color,times,x,y); 03079 red_edge_col(0.675,0.45,color,times,x,y); 03080 03081 red_edge_row(-0.675,0.675,color,times,x,y); 03082 red_edge_row(-0.45,0.675,color,times,x,y); 03083 red_edge_row(-0.225,0.675,color,times,x,y); 03084 red_edge_row(0.0,0.675,color,times,x,y); 03085 red_edge_row(0.225,0.675,color,times,x,y); 03086 red_edge_row(0.45,0.675,color,times,x,y); 03087 03088 red_edge_row(-0.675,-0.675,color,times,x,y); 03089 red_edge_row(-0.45,-0.675,color,times,x,y); 03090 red_edge_row(-0.225,-0.675,color,times,x,y); 03091 red_edge_row(0.0,-0.675,color,times,x,y); 03092 red_edge_row(0.225,-0.675,color,times,x,y); 03093 red_edge_row(0.45,-0.675,color,times,x,y); 03094 }break; 03095 case 2:{ 03096 red_edge_col(0.675,0.45,color,times,x,y); 03097 red_edge_col(0.675,0.225,color,times,x,y); 03098 red_edge_col(0.675,0.0,color,times,x,y); 03099 red_edge_col(0.675,-0.225,color,times,x,y); 03100 red_edge_col(0.675,-0.45,color,times,x,y); 03101 red_edge_col(0.675,-0.675,color,times,x,y); 03102 //edge_row(-0.675,0.675,color,times,x,y); 03103 03104 red_edge_col(-0.675,0.45,color,times,x,y); 03105 red_edge_col(-0.675,0.225,color,times,x,y); 03106 red_edge_col(-0.675,0.0,color,times,x,y); 03107 red_edge_col(-0.675,-0.225,color,times,x,y); 03108 red_edge_col(-0.675,-0.45,color,times,x,y); 03109 red_edge_col(-0.675,-0.675,color,times,x,y); 03110 03111 red_edge_row(0.45,-0.675,color,times,x,y); 03112 red_edge_row(0.225,-0.675,color,times,x,y); 03113 red_edge_row(0.0,-0.675,color,times,x,y); 03114 red_edge_row(-0.225,-0.675,color,times,x,y); 03115 red_edge_row(-0.45,-0.675,color,times,x,y); 03116 red_edge_row(-0.675,-0.675,color,times,x,y); 03117 03118 red_edge_row(0.45,0.675,color,times,x,y); 03119 red_edge_row(0.225,0.675,color,times,x,y); 03120 red_edge_row(0.0,0.675,color,times,x,y); 03121 red_edge_row(-0.225,0.675,color,times,x,y); 03122 red_edge_row(-0.45,0.675,color,times,x,y); 03123 red_edge_row(-0.675,0.675,color,times,x,y); 03124 }break; 03125 case 3:{ 03126 red_edge_col(-0.675,0.45,color,times,x,y); 03127 red_edge_col(-0.675,0.225,color,times,x,y); 03128 red_edge_col(-0.675,0.0,color,times,x,y); 03129 red_edge_col(-0.675,-0.225,color,times,x,y); 03130 red_edge_col(-0.675,-0.45,color,times,x,y); 03131 red_edge_col(-0.675,-0.675,color,times,x,y); 03132 //edge_row(-0.675,0.675,color,times,x,y); 03133 03134 red_edge_col(0.675,0.45,color,times,x,y); 03135 red_edge_col(0.675,0.225,color,times,x,y); 03136 red_edge_col(0.675,0.0,color,times,x,y); 03137 red_edge_col(0.675,-0.225,color,times,x,y); 03138 red_edge_col(0.675,-0.45,color,times,x,y); 03139 red_edge_col(0.675,-0.675,color,times,x,y); 03140 03141 red_edge_row(-0.675,-0.675,color,times,x,y); 03142 red_edge_row(-0.45,-0.675,color,times,x,y); 03143 red_edge_row(-0.225,-0.675,color,times,x,y); 03144 red_edge_row(0.0,-0.675,color,times,x,y); 03145 red_edge_row(0.225,-0.675,color,times,x,y); 03146 red_edge_row(0.45,-0.675,color,times,x,y); 03147 03148 red_edge_row(-0.675,0.675,color,times,x,y); 03149 red_edge_row(-0.45,0.675,color,times,x,y); 03150 red_edge_row(-0.225,0.675,color,times,x,y); 03151 red_edge_row(0.0,0.675,color,times,x,y); 03152 red_edge_row(0.225,0.675,color,times,x,y); 03153 red_edge_row(0.45,0.675,color,times,x,y); 03154 }break; 03155 } 03156 } 03157 03158 void red_New(int type, float x, float y, float color, float times) //New Shape 03159 { 03160 switch (type){ 03161 case 0: 03162 { 03163 red_edge_row(0.225,0.675,color,times,x,y); 03164 red_edge_row(0.45,0.675,color,times,x,y); 03165 03166 red_edge_row(-0.45,0.45,color,times,x,y); 03167 red_edge_row(-0.225,0.45,color,times,x,y); 03168 red_edge_row(0.0,0.45,color,times,x,y); 03169 03170 red_edge_row(-0.675,-0.225,color,times,x,y); 03171 03172 red_edge_row(-0.675,-0.675,color,times,x,y); 03173 red_edge_row(-0.45,-0.675,color,times,x,y); 03174 red_edge_row(-0.225,-0.675,color,times,x,y); 03175 red_edge_row(0.0,-0.675,color,times,x,y); 03176 red_edge_row(0.225,-0.675,color,times,x,y); 03177 red_edge_row(0.45,-0.675,color,times,x,y); 03178 03179 red_edge_col(-0.675,-0.675,color,times,x,y); 03180 red_edge_col(-0.675,-0.45,color,times,x,y); 03181 03182 red_edge_col(-0.45,-0.225,color,times,x,y); 03183 red_edge_col(-0.45,0.0,color,times,x,y); 03184 red_edge_col(-0.45,0.225,color,times,x,y); 03185 03186 red_edge_col(0.225,0.45,color,times,x,y); 03187 03188 red_edge_col(0.675,-0.675,color,times,x,y); 03189 red_edge_col(0.675,-0.45,color,times,x,y); 03190 red_edge_col(0.675,-0.225,color,times,x,y); 03191 red_edge_col(0.675,0.0,color,times,x,y); 03192 red_edge_col(0.675,0.225,color,times,x,y); 03193 red_edge_col(0.675,0.45,color,times,x,y); 03194 }break; 03195 case 1: 03196 { 03197 red_edge_row(-0.45,0.675,color,times,x,y); 03198 red_edge_row(-0.675,0.675,color,times,x,y); 03199 03200 red_edge_row(0.225,0.45,color,times,x,y); 03201 red_edge_row(0.0,0.45,color,times,x,y); 03202 red_edge_row(-0.225,0.45,color,times,x,y); 03203 03204 red_edge_row(0.45,-0.225,color,times,x,y); 03205 03206 red_edge_row(0.45,-0.675,color,times,x,y); 03207 red_edge_row(0.225,-0.675,color,times,x,y); 03208 red_edge_row(0.0,-0.675,color,times,x,y); 03209 red_edge_row(-0.225,-0.675,color,times,x,y); 03210 red_edge_row(-0.45,-0.675,color,times,x,y); 03211 red_edge_row(-0.675,-0.675,color,times,x,y); 03212 03213 red_edge_col(0.675,-0.675,color,times,x,y); 03214 red_edge_col(0.675,-0.45,color,times,x,y); 03215 03216 red_edge_col(0.45,-0.225,color,times,x,y); 03217 red_edge_col(0.45,0.0,color,times,x,y); 03218 red_edge_col(0.45,0.225,color,times,x,y); 03219 03220 red_edge_col(-0.225,0.45,color,times,x,y); 03221 03222 red_edge_col(-0.675,-0.675,color,times,x,y); 03223 red_edge_col(-0.675,-0.45,color,times,x,y); 03224 red_edge_col(-0.675,-0.225,color,times,x,y); 03225 red_edge_col(-0.675,0.0,color,times,x,y); 03226 red_edge_col(-0.675,0.225,color,times,x,y); 03227 red_edge_col(-0.675,0.45,color,times,x,y); 03228 }break; 03229 case 2: 03230 { 03231 red_edge_row(0.225,-0.675,color,times,x,y); 03232 red_edge_row(0.45,-0.675,color,times,x,y); 03233 03234 red_edge_row(-0.45,-0.45,color,times,x,y); 03235 red_edge_row(-0.225,-0.45,color,times,x,y); 03236 red_edge_row(0.0,-0.45,color,times,x,y); 03237 03238 red_edge_row(-0.675,0.225,color,times,x,y); 03239 03240 red_edge_row(-0.675,0.675,color,times,x,y); 03241 red_edge_row(-0.45,0.675,color,times,x,y); 03242 red_edge_row(-0.225,0.675,color,times,x,y); 03243 red_edge_row(0.0,0.675,color,times,x,y); 03244 red_edge_row(0.225,0.675,color,times,x,y); 03245 red_edge_row(0.45,0.675,color,times,x,y); 03246 03247 red_edge_col(-0.675,0.45,color,times,x,y); 03248 red_edge_col(-0.675,0.225,color,times,x,y); 03249 03250 red_edge_col(-0.45,0.0,color,times,x,y); 03251 red_edge_col(-0.45,-0.225,color,times,x,y); 03252 red_edge_col(-0.45,-0.45,color,times,x,y); 03253 03254 red_edge_col(0.225,-0.675,color,times,x,y); 03255 03256 red_edge_col(0.675,0.45,color,times,x,y); 03257 red_edge_col(0.675,0.225,color,times,x,y); 03258 red_edge_col(0.675,0.0,color,times,x,y); 03259 red_edge_col(0.675,-0.225,color,times,x,y); 03260 red_edge_col(0.675,-0.45,color,times,x,y); 03261 red_edge_col(0.675,-0.675,color,times,x,y); 03262 }break; 03263 case 3: 03264 { 03265 red_edge_row(-0.45,-0.675,color,times,x,y); 03266 red_edge_row(-0.675,-0.675,color,times,x,y); 03267 03268 red_edge_row(0.225,-0.45,color,times,x,y); 03269 red_edge_row(0.0,-0.45,color,times,x,y); 03270 red_edge_row(-0.225,-0.45,color,times,x,y); 03271 03272 red_edge_row(0.45,0.225,color,times,x,y); 03273 03274 red_edge_row(0.45,0.675,color,times,x,y); 03275 red_edge_row(0.225,0.675,color,times,x,y); 03276 red_edge_row(0.0,0.675,color,times,x,y); 03277 red_edge_row(-0.225,0.675,color,times,x,y); 03278 red_edge_row(-0.45,0.675,color,times,x,y); 03279 red_edge_row(-0.675,0.675,color,times,x,y); 03280 03281 red_edge_col(0.675,0.45,color,times,x,y); 03282 red_edge_col(0.675,0.225,color,times,x,y); 03283 03284 red_edge_col(0.45,0.0,color,times,x,y); 03285 red_edge_col(0.45,-0.225,color,times,x,y); 03286 red_edge_col(0.45,-0.45,color,times,x,y); 03287 03288 red_edge_col(-0.225,-0.675,color,times,x,y); 03289 03290 red_edge_col(-0.675,0.45,color,times,x,y); 03291 red_edge_col(-0.675,0.225,color,times,x,y); 03292 red_edge_col(-0.675,0.0,color,times,x,y); 03293 red_edge_col(-0.675,-0.225,color,times,x,y); 03294 red_edge_col(-0.675,-0.45,color,times,x,y); 03295 red_edge_col(-0.675,-0.675,color,times,x,y); 03296 }break; 03297 } 03298 } 03299 03300 void red_L(int type, float x, float y, float color, float times) //L Shape 03301 { 03302 switch (type){ //L shape is Left 03303 case 0: 03304 { 03305 red_edge_row(-0.675,0.675,color,times,x,y); 03306 red_edge_row(-0.45,0.675,color,times,x,y); 03307 red_edge_row(-0.225,0.675,color,times,x,y); 03308 red_edge_row(0.0,0.675,color,times,x,y); 03309 red_edge_row(0.225,0.675,color,times,x,y); 03310 red_edge_row(0.45,0.675,color,times,x,y); 03311 03312 red_edge_row(0.0,0.0,color,times,x,y); 03313 red_edge_row(0.225,0.0,color,times,x,y); 03314 red_edge_row(0.45,0.0,color,times,x,y); 03315 03316 red_edge_row(-0.675,-0.675,color,times,x,y); 03317 red_edge_row(-0.45,-0.675,color,times,x,y); 03318 red_edge_row(-0.225,-0.675,color,times,x,y); 03319 03320 red_edge_col(-0.675,-0.675,color,times,x,y); 03321 red_edge_col(-0.675,-0.45,color,times,x,y); 03322 red_edge_col(-0.675,-0.225,color,times,x,y); 03323 red_edge_col(-0.675,0.0,color,times,x,y); 03324 red_edge_col(-0.675,0.225,color,times,x,y); 03325 red_edge_col(-0.675,0.45,color,times,x,y); 03326 03327 red_edge_col(0.0,-0.675,color,times,x,y); 03328 red_edge_col(0.0,-0.45,color,times,x,y); 03329 red_edge_col(0.0,-0.225,color,times,x,y); 03330 03331 red_edge_col(0.675,0.0,color,times,x,y); 03332 red_edge_col(0.675,0.225,color,times,x,y); 03333 red_edge_col(0.675,0.45,color,times,x,y); 03334 }break; 03335 case 1:{ //L shape is Right 03336 red_edge_row(0.45,0.675,color,times,x,y); 03337 red_edge_row(0.225,0.675,color,times,x,y); 03338 red_edge_row(0.0,0.675,color,times,x,y); 03339 red_edge_row(-0.225,0.675,color,times,x,y); 03340 red_edge_row(-0.45,0.675,color,times,x,y); 03341 red_edge_row(-0.675,0.675,color,times,x,y); 03342 03343 red_edge_row(-0.225,0.0,color,times,x,y); 03344 red_edge_row(-0.45,0.0,color,times,x,y); 03345 red_edge_row(-0.675,0.0,color,times,x,y); 03346 03347 red_edge_row(0.45,-0.675,color,times,x,y); 03348 red_edge_row(0.225,-0.675,color,times,x,y); 03349 red_edge_row(0.0,-0.675,color,times,x,y); 03350 03351 red_edge_col(0.675,-0.675,color,times,x,y); 03352 red_edge_col(0.675,-0.45,color,times,x,y); 03353 red_edge_col(0.675,-0.225,color,times,x,y); 03354 red_edge_col(0.675,0.0,color,times,x,y); 03355 red_edge_col(0.675,0.225,color,times,x,y); 03356 red_edge_col(0.675,0.45,color,times,x,y); 03357 03358 red_edge_col(0.0,-0.675,color,times,x,y); 03359 red_edge_col(0.0,-0.45,color,times,x,y); 03360 red_edge_col(0.0,-0.225,color,times,x,y); 03361 03362 red_edge_col(-0.675,0.0,color,times,x,y); 03363 red_edge_col(-0.675,0.225,color,times,x,y); 03364 red_edge_col(-0.675,0.45,color,times,x,y); 03365 }break; 03366 case 2:{ 03367 red_edge_row(-0.675,-0.675,color,times,x,y); 03368 red_edge_row(-0.45,-0.675,color,times,x,y); 03369 red_edge_row(-0.225,-0.675,color,times,x,y); 03370 red_edge_row(0.0,-0.675,color,times,x,y); 03371 red_edge_row(0.225,-0.675,color,times,x,y); 03372 red_edge_row(0.45,-0.675,color,times,x,y); 03373 03374 red_edge_row(0.0,0.0,color,times,x,y); 03375 red_edge_row(0.225,0.0,color,times,x,y); 03376 red_edge_row(0.45,0.0,color,times,x,y); 03377 03378 red_edge_row(-0.675,0.675,color,times,x,y); 03379 red_edge_row(-0.45,0.675,color,times,x,y); 03380 red_edge_row(-0.225,0.675,color,times,x,y); 03381 03382 red_edge_col(-0.675,0.45,color,times,x,y); 03383 red_edge_col(-0.675,0.225,color,times,x,y); 03384 red_edge_col(-0.675,0.0,color,times,x,y); 03385 red_edge_col(-0.675,-0.225,color,times,x,y); 03386 red_edge_col(-0.675,-0.45,color,times,x,y); 03387 red_edge_col(-0.675,-0.675,color,times,x,y); 03388 03389 red_edge_col(0.0,0.45,color,times,x,y); 03390 red_edge_col(0.0,0.225,color,times,x,y); 03391 red_edge_col(0.0,0.0,color,times,x,y); 03392 03393 red_edge_col(0.675,-0.225,color,times,x,y); 03394 red_edge_col(0.675,-0.45,color,times,x,y); 03395 red_edge_col(0.675,-0.675,color,times,x,y); 03396 }break; 03397 case 3:{ 03398 red_edge_row(0.45,-0.675,color,times,x,y); 03399 red_edge_row(0.225,-0.675,color,times,x,y); 03400 red_edge_row(0.0,-0.675,color,times,x,y); 03401 red_edge_row(-0.225,-0.675,color,times,x,y); 03402 red_edge_row(-0.45,-0.675,color,times,x,y); 03403 red_edge_row(-0.675,-0.675,color,times,x,y); 03404 03405 red_edge_row(-0.225,0.0,color,times,x,y); 03406 red_edge_row(-0.45,0.0,color,times,x,y); 03407 red_edge_row(-0.675,0.0,color,times,x,y); 03408 03409 red_edge_row(0.45,0.675,color,times,x,y); 03410 red_edge_row(0.225,0.675,color,times,x,y); 03411 red_edge_row(0.0,0.675,color,times,x,y); 03412 03413 red_edge_col(0.675,0.45,color,times,x,y); 03414 red_edge_col(0.675,0.225,color,times,x,y); 03415 red_edge_col(0.675,0.0,color,times,x,y); 03416 red_edge_col(0.675,-0.225,color,times,x,y); 03417 red_edge_col(0.675,-0.45,color,times,x,y); 03418 red_edge_col(0.675,-0.675,color,times,x,y); 03419 03420 red_edge_col(0.0,0.45,color,times,x,y); 03421 red_edge_col(0.0,0.225,color,times,x,y); 03422 red_edge_col(0.0,0.0,color,times,x,y); 03423 03424 red_edge_col(-0.675,-0.225,color,times,x,y); 03425 red_edge_col(-0.675,-0.45,color,times,x,y); 03426 red_edge_col(-0.675,-0.675,color,times,x,y); 03427 }break; 03428 } 03429 } 03430 03431 void Display_FixationBlue(void) 03432 { 03433 glPushMatrix(); 03434 03435 glBegin(GL_POLYGON); 03436 glColor3d( 0.0, 0.0, 1.0); 03437 03438 glVertex2d(-0.025, -0.025); 03439 glVertex2d( 0.025, -0.025); 03440 glVertex2d( 0.025, 0.025); 03441 glVertex2d(-0.025, 0.025); 03442 glEnd(); 03443 03444 glBegin(GL_POLYGON); 03445 glColor3d( 0.0, 0.0, 1.0); 03446 glVertex2d(-0.025, -0.025); 03447 glVertex2d( 0.025, -0.025); 03448 glVertex2d( 0.025, 0.025); 03449 glVertex2d(-0.025, 0.025); 03450 glEnd(); 03451 03452 glPopMatrix(); 03453 } 03454 03455 void Display_FixationRed(void) 03456 { 03457 glPushMatrix(); 03458 03459 glBegin(GL_POLYGON); 03460 glColor3d( 1.0, 0.0, 0.0); 03461 03462 glVertex2d(-0.025, -0.025); 03463 glVertex2d( 0.025, -0.025); 03464 glVertex2d( 0.025, 0.025); 03465 glVertex2d(-0.025, 0.025); 03466 glEnd(); 03467 03468 glBegin(GL_POLYGON); 03469 glColor3d( 1.0, 0.0, 0.0); 03470 glVertex2d(-0.025, -0.025); 03471 glVertex2d( 0.025, -0.025); 03472 glVertex2d( 0.025, 0.025); 03473 glVertex2d(-0.025, 0.025); 03474 glEnd(); 03475 03476 glPopMatrix(); 03477 } 03478 03479 03480 void Display_Fixation(void) 03481 { 03482 glPushMatrix(); 03483 03484 glBegin(GL_POLYGON); 03485 glColor3d( 0.0, 0.0, 0.0); 03486 glVertex2d(-0.0075, -0.025); 03487 glVertex2d( 0.0075, -0.025); 03488 glVertex2d( 0.0075, 0.025); 03489 glVertex2d(-0.0075, 0.025); 03490 glEnd(); 03491 glBegin(GL_POLYGON); 03492 glVertex2d(-0.025, -0.0075); 03493 glVertex2d(-0.025, 0.0075); 03494 glVertex2d( 0.025, 0.0075); 03495 glVertex2d( 0.025, -0.0075); 03496 glEnd(); 03497 03498 glBegin(GL_POLYGON); 03499 glColor3d( 0.0, 0.0, 0.0); 03500 glVertex2d(-0.0075, -0.025); 03501 glVertex2d( 0.0075, -0.025); 03502 glVertex2d( 0.0075, 0.025); 03503 glVertex2d(-0.0075, 0.025); 03504 glEnd(); 03505 glBegin(GL_POLYGON); 03506 glVertex2d(-0.025, -0.0075); 03507 glVertex2d(-0.025, 0.0075); 03508 glVertex2d( 0.025, 0.0075); 03509 glVertex2d( 0.025, -0.0075); 03510 glEnd(); 03511 03512 glPopMatrix(); 03513 } 03514 03515 void Display_CalibPoints(void) 03516 { 03517 glPushMatrix(); 03518 03519 glBegin(GL_POLYGON); 03520 glColor3d( 0.0, 0.0, 0.0); 03521 glVertex2d(-0.0075, -0.025); 03522 glVertex2d( 0.0075, -0.025); 03523 glVertex2d( 0.0075, 0.025); 03524 glVertex2d(-0.0075, 0.025); 03525 glEnd(); 03526 glBegin(GL_POLYGON); 03527 glVertex2d(-0.025, -0.0075); 03528 glVertex2d(-0.025, 0.0075); 03529 glVertex2d( 0.025, 0.0075); 03530 glVertex2d( 0.025, -0.0075); 03531 glEnd(); 03532 03533 glColor3d( 1.0, 1.0, 1.0); 03534 /*glBegin(GL_POLYGON); 03535 glVertex2d(-0.775, 0.725); 03536 glVertex2d(-0.725, 0.725); 03537 glVertex2d(-0.725, 0.775); 03538 glVertex2d(-0.775, 0.775); 03539 glEnd(); 03540 03541 glBegin(GL_POLYGON); 03542 glVertex2d( 0.725, 0.725); 03543 glVertex2d( 0.775, 0.725); 03544 glVertex2d( 0.775, 0.775); 03545 glVertex2d( 0.725, 0.775); 03546 glEnd(); 03547 03548 glBegin(GL_POLYGON); 03549 glVertex2d( 0.725, -0.775); 03550 glVertex2d( 0.775, -0.725); 03551 glVertex2d( 0.775, -0.725); 03552 glVertex2d( 0.725, -0.775); 03553 glEnd(); 03554 03555 glBegin(GL_POLYGON); 03556 glVertex2d( -0.775, -0.775); 03557 glVertex2d( -0.725, -0.775); 03558 glVertex2d( -0.725, -0.725); 03559 glVertex2d( -0.775, -0.725); 03560 glEnd();*/ 03561 glBegin(GL_POLYGON); 03562 /*glVertex2d(-0.8925, 0.5475); 03563 glVertex2d(-0.8675, 0.5475); 03564 glVertex2d(-0.8675, 0.5725); 03565 glVertex2d(-0.8925, 0.5725);*/ 03566 glVertex2d(-1.260, 0.645); 03567 glVertex2d(-1.235, 0.645); 03568 glVertex2d(-1.235, 0.670); 03569 glVertex2d(-1.260, 0.670); 03570 glEnd(); 03571 03572 glBegin(GL_POLYGON); 03573 glVertex2d( 1.235, 0.645); 03574 glVertex2d( 1.260, 0.645); 03575 glVertex2d( 1.260, 0.670); 03576 glVertex2d( 1.235, 0.670); 03577 glEnd(); 03578 03579 glBegin(GL_POLYGON); 03580 glVertex2d( 1.235, -0.610); 03581 glVertex2d( 1.260, -0.610); 03582 glVertex2d( 1.260, -0.585); 03583 glVertex2d( 1.235, -0.585); 03584 glEnd(); 03585 03586 glBegin(GL_POLYGON); 03587 /*glVertex2d( -0.8925, -0.6525); 03588 glVertex2d( -0.8675, -0.6525); 03589 glVertex2d( -0.8675, -0.6275); 03590 glVertex2d( -0.8925, -0.6275);*/ 03591 glVertex2d( -1.26, -0.610); 03592 glVertex2d( -1.235, -0.610); 03593 glVertex2d( -1.235, -0.585); 03594 glVertex2d( -1.26, -0.585); 03595 glEnd(); 03596 03597 /*****************************/ 03598 glBegin(GL_POLYGON); 03599 glColor3d( 0.0, 0.0, 0.0); 03600 glVertex2d(-0.0075, -0.025); 03601 glVertex2d( 0.0075, -0.025); 03602 glVertex2d( 0.0075, 0.025); 03603 glVertex2d(-0.0075, 0.025); 03604 glEnd(); 03605 glBegin(GL_POLYGON); 03606 glVertex2d(-0.025, -0.0075); 03607 glVertex2d(-0.025, 0.0075); 03608 glVertex2d( 0.025, 0.0075); 03609 glVertex2d( 0.025, -0.0075); 03610 glEnd(); 03611 glColor3d( 1.0, 1.0, 1.0); 03612 03613 /*glBegin(GL_POLYGON); 03614 glVertex2d(-0.775, 0.725); 03615 glVertex2d(-0.725, 0.725); 03616 glVertex2d(-0.725, 0.775); 03617 glVertex2d(-0.775, 0.775); 03618 glEnd(); 03619 03620 glBegin(GL_POLYGON); 03621 glVertex2d( 0.725, 0.725); 03622 glVertex2d( 0.775, 0.725); 03623 glVertex2d( 0.775, 0.775); 03624 glVertex2d( 0.725, 0.775); 03625 glEnd(); 03626 03627 glBegin(GL_POLYGON); 03628 glVertex2d( 0.725, -0.775); 03629 glVertex2d( 0.775, -0.775); 03630 glVertex2d( 0.775, -0.725); 03631 glVertex2d( 0.725, -0.725); 03632 glEnd(); 03633 03634 glBegin(GL_POLYGON); 03635 glVertex2d( -0.775, -0.775); 03636 glVertex2d( -0.725, -0.775); 03637 glVertex2d( -0.725, -0.725); 03638 glVertex2d( -0.775, -0.725); 03639 glEnd();*/ 03640 03641 glBegin(GL_POLYGON); 03642 /*glVertex2d(-0.8925, 0.5475); 03643 glVertex2d(-0.8675, 0.5475); 03644 glVertex2d(-0.8675, 0.5725); 03645 glVertex2d(-0.8925, 0.5725);*/ 03646 glVertex2d(-1.26, 0.645); 03647 glVertex2d(-1.235, 0.645); 03648 glVertex2d(-1.235, 0.67); 03649 glVertex2d(-1.26, 0.67); 03650 glEnd(); 03651 03652 glBegin(GL_POLYGON); 03653 glVertex2d( 1.235, 0.645); 03654 glVertex2d( 1.26, 0.645); 03655 glVertex2d( 1.26, 0.67); 03656 glVertex2d( 1.235, 0.67); 03657 glEnd(); 03658 03659 glBegin(GL_POLYGON); 03660 glVertex2d( 1.235, -0.610); 03661 glVertex2d( 1.26, -0.610); 03662 glVertex2d( 1.26, -0.585); 03663 glVertex2d( 1.235, -0.585); 03664 glEnd(); 03665 03666 glBegin(GL_POLYGON); 03667 /*glVertex2d( -0.8925, -0.6525); 03668 glVertex2d( -0.8675, -0.6525); 03669 glVertex2d( -0.8675, -0.6275); 03670 glVertex2d( -0.8925, -0.6275);*/ 03671 glVertex2d( -1.26, -0.610); 03672 glVertex2d( -1.235, -0.610); 03673 glVertex2d( -1.235, -0.585); 03674 glVertex2d( -1.26, -0.585); 03675 glEnd(); 03676 03677 glPopMatrix(); 03678 } 03679 03680 void Display_PointsF(void) 03681 { 03682 glPushMatrix(); 03683 03684 glColor3d( 0.0, 0.0, 0.0); 03685 03686 /*glBegin(GL_POLYGON); 03687 glVertex2d(-0.0075, -0.025); 03688 glVertex2d( 0.0075, -0.025); 03689 glVertex2d( 0.0075, 0.025); 03690 glVertex2d(-0.0075, 0.025); 03691 glEnd(); 03692 glBegin(GL_POLYGON); 03693 glVertex2d(-0.025, -0.0075); 03694 glVertex2d(-0.025, 0.0075); 03695 glVertex2d( 0.025, 0.0075); 03696 glVertex2d( 0.025, -0.0075); 03697 glEnd(); 03698 03699 glColor3d( 0.0, 0.0, 0.0); 03700 glBegin(GL_POLYGON); 03701 glVertex2d(-0.775, 0.725); 03702 glVertex2d(-0.725, 0.725); 03703 glVertex2d(-0.725, 0.775); 03704 glVertex2d(-0.775, 0.775); 03705 glEnd(); 03706 03707 glBegin(GL_POLYGON); 03708 glVertex2d( 0.725, 0.725); 03709 glVertex2d( 0.775, 0.725); 03710 glVertex2d( 0.775, 0.775); 03711 glVertex2d( 0.725, 0.775); 03712 glEnd(); 03713 03714 glBegin(GL_POLYGON); 03715 glVertex2d( 0.725, -0.775); 03716 glVertex2d( 0.775, -0.725); 03717 glVertex2d( 0.775, -0.725); 03718 glVertex2d( 0.725, -0.775); 03719 glEnd(); 03720 03721 glBegin(GL_POLYGON); 03722 glVertex2d( -0.775, -0.775); 03723 glVertex2d( -0.725, -0.775); 03724 glVertex2d( -0.725, -0.725); 03725 glVertex2d( -0.775, -0.725); 03726 glEnd();*/ 03727 glBegin(GL_POLYGON); 03728 glVertex2d(-1.260, 0.645); 03729 glVertex2d(-1.235, 0.645); 03730 glVertex2d(-1.235, 0.670); 03731 glVertex2d(-1.260, 0.670); 03732 glEnd(); 03733 03734 glBegin(GL_POLYGON); 03735 glVertex2d( 1.235, 0.645); 03736 glVertex2d( 1.260, 0.645); 03737 glVertex2d( 1.260, 0.670); 03738 glVertex2d( 1.235, 0.670); 03739 glEnd(); 03740 03741 glBegin(GL_POLYGON); 03742 glVertex2d( 1.235, -0.610); 03743 glVertex2d( 1.260, -0.610); 03744 glVertex2d( 1.260, -0.585); 03745 glVertex2d( 1.235, -0.585); 03746 glEnd(); 03747 03748 glBegin(GL_POLYGON); 03749 glVertex2d( -1.260, -0.610); 03750 glVertex2d( -1.235, -0.610); 03751 glVertex2d( -1.235, -0.585); 03752 glVertex2d( -1.260, -0.585); 03753 glEnd(); 03754 03755 /*****************************/ 03756 glBegin(GL_POLYGON); 03757 glColor3d( 0.0, 0.0, 0.0); 03758 glVertex2d(-0.0075, -0.025); 03759 glVertex2d( 0.0075, -0.025); 03760 glVertex2d( 0.0075, 0.025); 03761 glVertex2d(-0.0075, 0.025); 03762 glEnd(); 03763 glBegin(GL_POLYGON); 03764 glVertex2d(-0.025, -0.0075); 03765 glVertex2d(-0.025, 0.0075); 03766 glVertex2d( 0.025, 0.0075); 03767 glVertex2d( 0.025, -0.0075); 03768 glEnd(); 03769 glColor3d( 0.0, 0.0, 0.0); 03770 03771 /*glBegin(GL_POLYGON); 03772 glVertex2d(-0.775, 0.725); 03773 glVertex2d(-0.725, 0.725); 03774 glVertex2d(-0.725, 0.775); 03775 glVertex2d(-0.775, 0.775); 03776 glEnd(); 03777 03778 glBegin(GL_POLYGON); 03779 glVertex2d( 0.725, 0.725); 03780 glVertex2d( 0.775, 0.725); 03781 glVertex2d( 0.775, 0.775); 03782 glVertex2d( 0.725, 0.775); 03783 glEnd(); 03784 03785 glBegin(GL_POLYGON); 03786 glVertex2d( 0.725, -0.775); 03787 glVertex2d( 0.775, -0.775); 03788 glVertex2d( 0.775, -0.725); 03789 glVertex2d( 0.725, -0.725); 03790 glEnd(); 03791 03792 glBegin(GL_POLYGON); 03793 glVertex2d( -0.775, -0.775); 03794 glVertex2d( -0.725, -0.775); 03795 glVertex2d( -0.725, -0.725); 03796 glVertex2d( -0.775, -0.725); 03797 glEnd();*/ 03798 glBegin(GL_POLYGON); 03799 glVertex2d(-1.260, 0.645); 03800 glVertex2d(-1.235, 0.645); 03801 glVertex2d(-1.235, 0.670); 03802 glVertex2d(-1.260, 0.670); 03803 glEnd(); 03804 03805 glBegin(GL_POLYGON); 03806 glVertex2d( 1.235, 0.645); 03807 glVertex2d( 1.260, 0.645); 03808 glVertex2d( 1.260, 0.670); 03809 glVertex2d( 1.235, 0.670); 03810 glEnd(); 03811 03812 glBegin(GL_POLYGON); 03813 glVertex2d( 1.235, -0.610); 03814 glVertex2d( 1.260, -0.610); 03815 glVertex2d( 1.260, -0.585); 03816 glVertex2d( 1.235, -0.585); 03817 glEnd(); 03818 03819 glBegin(GL_POLYGON); 03820 glVertex2d( -1.260, -0.610); 03821 glVertex2d( -1.235, -0.610); 03822 glVertex2d( -1.235, -0.585); 03823 glVertex2d( -1.260, -0.585); 03824 glEnd(); 03825 03826 glPopMatrix(); 03827 } 03828 03829 void Display_Calib1(void) 03830 { 03831 glPushMatrix(); 03832 glBegin(GL_POLYGON); 03833 03834 glColor3d( 1.0, 1.0, 1.0); 03835 03836 glBegin(GL_POLYGON); 03837 glVertex2d(-0.0125, 0.645); 03838 glVertex2d( 0.0125, 0.645); 03839 glVertex2d( 0.0125, 0.670); 03840 glVertex2d(-0.0125, 0.670); 03841 glEnd(); 03842 03843 /*****************************/ 03844 03845 glColor3d( 1.0, 1.0, 1.0); 03846 03847 glBegin(GL_POLYGON); 03848 glVertex2d(-0.0125, 0.645); 03849 glVertex2d( 0.0125, 0.645); 03850 glVertex2d( 0.0125, 0.670); 03851 glVertex2d(-0.0125, 0.670); 03852 glEnd(); 03853 glPopMatrix(); 03854 } 03855 03856 void Display_Calib2(void) 03857 { 03858 glPushMatrix(); 03859 glBegin(GL_POLYGON); 03860 03861 glColor3d( 1.0, 1.0, 1.0); 03862 03863 glBegin(GL_POLYGON); 03864 glVertex2d(-0.0125,-0.585); 03865 glVertex2d( 0.0125,-0.585); 03866 glVertex2d( 0.0125,-0.610); 03867 glVertex2d(-0.0125,-0.610); 03868 glEnd(); 03869 03870 /*****************************/ 03871 03872 glColor3d( 1.0, 1.0, 1.0); 03873 glBegin(GL_POLYGON); 03874 03875 glBegin(GL_POLYGON); 03876 glVertex2d(-0.0125,-0.585); 03877 glVertex2d( 0.0125,-0.585); 03878 glVertex2d( 0.0125,-0.610); 03879 glVertex2d(-0.0125,-0.610); 03880 glEnd(); 03881 03882 glPopMatrix(); 03883 } 03884 03885 void Display_Calib3(void) 03886 { 03887 glPushMatrix(); 03888 glBegin(GL_POLYGON); 03889 03890 glColor3d( 1.0, 1.0, 1.0); 03891 03892 glBegin(GL_POLYGON); 03893 glVertex2d(-1.260,-0.0125); 03894 glVertex2d(-1.235,-0.0125); 03895 glVertex2d(-1.235, 0.0125); 03896 glVertex2d(-1.260, 0.0125); 03897 glEnd(); 03898 03899 /*****************************/ 03900 03901 glColor3d( 1.0, 1.0, 1.0); 03902 glBegin(GL_POLYGON); 03903 glVertex2d(-1.260,-0.0125); 03904 glVertex2d(-1.235,-0.0125); 03905 glVertex2d(-1.235, 0.0125); 03906 glVertex2d(-1.260, 0.0125); 03907 glBegin(GL_POLYGON); 03908 03909 glEnd(); 03910 03911 glPopMatrix(); 03912 } 03913 03914 void Display_Calib4(void) 03915 { 03916 glPushMatrix(); 03917 glColor3d( 1.0, 1.0, 1.0); 03918 03919 glBegin(GL_POLYGON); 03920 glVertex2d( 1.235,-0.0125); 03921 glVertex2d( 1.260,-0.0125); 03922 glVertex2d( 1.260, 0.0125); 03923 glVertex2d( 1.235, 0.0125); 03924 glEnd(); 03925 03926 /*****************************/ 03927 glColor3d( 1.0, 1.0, 1.0); 03928 glBegin(GL_POLYGON); 03929 glVertex2d( 1.235,-0.0125); 03930 glVertex2d( 1.260,-0.0125); 03931 glVertex2d( 1.260, 0.0125); 03932 glVertex2d( 1.235, 0.0125); 03933 glBegin(GL_POLYGON); 03934 03935 glEnd(); 03936 03937 glPopMatrix(); 03938 } 03939 03940 void Display_Calib5(void) 03941 { 03942 glPushMatrix(); 03943 glBegin(GL_POLYGON); 03944 03945 glColor3d( 1.0, 1.0, 1.0); 03946 03947 glBegin(GL_POLYGON); 03948 glVertex2d(-1.260, 0.645); 03949 glVertex2d(-1.235, 0.645); 03950 glVertex2d(-1.235, 0.670); 03951 glVertex2d(-1.260, 0.670); 03952 glEnd(); 03953 03954 /*****************************/ 03955 03956 glColor3d( 1.0, 1.0, 1.0); 03957 glBegin(GL_POLYGON); 03958 03959 glBegin(GL_POLYGON); 03960 glVertex2d(-1.260, 0.645); 03961 glVertex2d(-1.235, 0.645); 03962 glVertex2d(-1.235, 0.670); 03963 glVertex2d(-1.260, 0.670); 03964 glEnd(); 03965 03966 glPopMatrix(); 03967 } 03968 03969 void Display_Calib6(void) 03970 { 03971 glPushMatrix(); 03972 glColor3d( 1.0, 1.0, 1.0); 03973 03974 glBegin(GL_POLYGON); 03975 glVertex2d( 1.235, 0.645); 03976 glVertex2d( 1.260, 0.645); 03977 glVertex2d( 1.260, 0.670); 03978 glVertex2d( 1.235, 0.670); 03979 glEnd(); 03980 03981 /*****************************/ 03982 glColor3d( 1.0, 1.0, 1.0); 03983 glBegin(GL_POLYGON); 03984 03985 glBegin(GL_POLYGON); 03986 glVertex2d( 1.235, 0.645); 03987 glVertex2d( 1.260, 0.645); 03988 glVertex2d( 1.260, 0.670); 03989 glVertex2d( 1.235, 0.670); 03990 glEnd(); 03991 03992 glPopMatrix(); 03993 } 03994 03995 void Display_Calib7(void) 03996 { 03997 glPushMatrix(); 03998 glColor3d( 1.0, 1.0, 1.0); 03999 04000 glBegin(GL_POLYGON); 04001 /*glVertex2d( 1.035, -0.505); 04002 glVertex2d( 1.060, -0.505); 04003 glVertex2d( 1.060, -0.480); 04004 glVertex2d( 1.035, -0.480);*/ 04005 glVertex2d( 1.235, -0.585); 04006 glVertex2d( 1.260, -0.585); 04007 glVertex2d( 1.260, -0.610); 04008 glVertex2d( 1.235, -0.610); 04009 glEnd(); 04010 04011 /*****************************/ 04012 glColor3d( 1.0, 1.0, 1.0); 04013 glBegin(GL_POLYGON); 04014 04015 glBegin(GL_POLYGON); 04016 /*glVertex2d( 1.035, -0.505); 04017 glVertex2d( 1.060, -0.505); 04018 glVertex2d( 1.060, -0.480); 04019 glVertex2d( 1.035, -0.480);*/ 04020 glVertex2d( 1.235, -0.585); 04021 glVertex2d( 1.260, -0.585); 04022 glVertex2d( 1.260, -0.610); 04023 glVertex2d( 1.235, -0.610); 04024 glEnd(); 04025 04026 glPopMatrix(); 04027 } 04028 04029 void Display_Calib8(void) 04030 { 04031 glPushMatrix(); 04032 glColor3d( 1.0, 1.0, 1.0); 04033 04034 glBegin(GL_POLYGON); 04035 glVertex2d( -1.260, -0.610); 04036 glVertex2d( -1.235, -0.610); 04037 glVertex2d( -1.235, -0.585); 04038 glVertex2d( -1.260, -0.585); 04039 glEnd(); 04040 04041 /*****************************/ 04042 glColor3d( 1.0, 1.0, 1.0); 04043 glBegin(GL_POLYGON); 04044 04045 glBegin(GL_POLYGON); 04046 glVertex2d( -1.260, -0.610); 04047 glVertex2d( -1.235, -0.610); 04048 glVertex2d( -1.235, -0.585); 04049 glVertex2d( -1.260, -0.585); 04050 glEnd(); 04051 04052 glPopMatrix(); 04053 } 04054 04055 void Display_Calib9(void) 04056 { 04057 glPushMatrix(); 04058 glColor3d( 1.0, 1.0, 1.0); 04059 04060 glBegin(GL_POLYGON); 04061 glVertex2d( -0.0125, -0.0125); 04062 glVertex2d( 0.0125, -0.0125); 04063 glVertex2d( 0.0125, 0.0125); 04064 glVertex2d( -0.0125, 0.0125); 04065 glEnd(); 04066 04067 /*****************************/ 04068 glColor3d( 1.0, 1.0, 1.0); 04069 glBegin(GL_POLYGON); 04070 04071 glBegin(GL_POLYGON); 04072 glVertex2d( -0.0125, -0.0125); 04073 glVertex2d( 0.0125, -0.0125); 04074 glVertex2d( 0.0125, 0.0125); 04075 glVertex2d( -0.0125, 0.0125); 04076 glEnd(); 04077 04078 glPopMatrix(); 04079 }