Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Ansi -iso > Re: GKS for pas...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 10 Topic 152 of 211
Post > Topic >>

Re: GKS for pascal

by "happy" <ehab_aziz2001@[EMAIL PROTECTED] > Apr 26, 2005 at 12:48 PM

Can the graph unit execute that program . Are there any alternatives to
execute the below program other than go to GKS ?
Can I execute the call set_pixel using other graphic library ?

procedure dda(xl,yl,x2,y2:integer);
var
dx,dy,steps,k:integer;
x_increment,y_increment,x,y:real;
begin
dx:=x2-xl;
dy:=y2-yl;
if abs(dx) > abs (dy) then
   begin
   steps:=abs(dx);
   end
else
    begin
    steps:=abs(dy);
    x_increment:=dx/steps;
    y_increment:=dy/steps;
    x:=xl;
    y:=yl;
    set_pixel(round(x),round(y));
    for k:=1 to steps do begin
    x:=x+x_increment;
    y:=y+y_increment;
    set_pixel(round(x),round(y));
    end
end;




 10 Posts in Topic:
GKS for pascal
"happy" <eha  2005-04-24 13:55:41 
Re: GKS for pascal
Marco van de Voort <ma  2005-04-24 21:36:08 
Re: GKS for pascal
Rudolf Wiesendanger <r  2005-04-25 12:20:33 
Re: GKS for pascal
"happy" <eha  2005-04-25 09:40:35 
Re: GKS for pascal
"F Verbeek" <  2005-04-26 01:25:12 
Re: GKS for pascal
"Jason Burgon"   2005-04-26 23:03:33 
Re: GKS for pascal
Rudolf Wiesendanger <r  2005-04-26 13:46:13 
Re: GKS for pascal
"happy" <eha  2005-04-26 12:48:49 
Re: GKS for pascal
Rudolf Wiesendanger <r  2005-04-27 12:25:45 
Re: GKS for pascal
"happy" <eha  2005-04-30 15:55:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 23:00:19 CDT 2008.