Advertisement
Guest User

Untitled

a guest
May 25th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <playAPC/playapc.h>
  2.  
  3. int main(){
  4. Ponto p;
  5. int geos[9];
  6. int j = -80;
  7.  
  8. AbreJanela(600, 600, "Pintando o elemento do meio de vermelho");
  9. PintarFundo(255, 255, 255);
  10. MostraPlanoCartesiano(10);
  11.  
  12. p.y = 0;
  13. for(int i = 0; i < 9; i++){
  14. p.x = j;
  15. j += 20;
  16.  
  17. geos[i] = CriaCircunferencia(5, p);
  18. Pintar(0, 0, 255);
  19. }
  20. Pintar(255, 0, 0, CIRCUNFERENCIA, geos[4]);
  21. Desenha();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement