1 / 9

Grafica in PASCAL

Grafica in PASCAL. Pentru ca sa elaboram un grafic desen vom folosi mai multe cuvinte cheie :. Arc( x,y , α , β ,r); Bar(x¹,y¹,x²,y²); Circle( x,y,r ); Line(x¹,y¹,x²,y²); Lineto ( x,y ); Moveto ( x,y );. Outext (‘text’); Outextxy ( x,y,’text ’); Putpixel ( x,y ,(color));

ariane
Télécharger la présentation

Grafica in PASCAL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Grafica in PASCAL

  2. Pentru ca saelaboram un grafic\desenvomfolosimaimultecuvintecheie: Arc(x,y,α,β,r); Bar(x¹,y¹,x²,y²); Circle(x,y,r); Line(x¹,y¹,x²,y²); Lineto(x,y); Moveto(x,y);

  3. Outext(‘text’); Outextxy(x,y,’text’); Putpixel(x,y,(color)); Rectangle(x¹,y¹,x²,y²); Setcolor(color); Setfillstyle(patter; color);

  4. In desenareaschematica a desenuluivomfolosisistemulcartizian de coordonate… axa ox vafiamplasatasus, iaroyvaincepenumaratoarea de sus in jos….

  5. Ca sacreezi un graficsau un desen in PASCAL estenevoiesaprecizezi de la inceputulprogramului… sianumeprincuvintulcheie:”graph”, care se izoleaza cu virguladupadeschidereabibliotecii PASCAL-lui. Ex: Program p1; Uses crt, graph;

  6. Deasemeniestenevoie de o procedura care saciteascagraficul/desenul Ex: procedure opengraph; vargd,gm:integer; begin gd:= detect; initgraph(gd,gm,’c:\tp\bgi’); end;

  7. Pentru a inscrieparametriidoritiaigraficului/desenuluiavemnevoie de inca o procedura. Ex:proceduretriunghi; begin setlinestyle(solidln, 100,3); setcolor(red); line(170,300,150,300); line(150,300,170,200); line(170,200,170,300); end;

  8. In programul principal vomcitiproceduraopengraphsiprocedura care am folosit-o (ex:trunghi). Ex: begin clrscr; opengraph; triunghi; readkey; closegraph; end.

  9. Un desenreusit e acela in care depuifoartemultefortsidragoste…deci….. SPOR LA MUNCA!!!!! BY BEKK@

More Related