Flowchart Dada Sret

You might also like

You are on page 1of 1

START

(x0,y0,x1,y1) xinc,yinc

end

dy=y1-y0 dx=x1-x0 x=x0

glVertex3f(Abs(x), Abs(y),0)

y=y0

Z#=0

if Abs(dx)>Abs(dy)

step#=Abs(dx)

If Z #= 0 Z#=1

N
step#=Abs(dy)

If i % 5= 0

Z#=0

xinc=dx/step# yinc=dy/step#

N for i = 0 to step# If Z #= 0 glVertex3f(Abs( x), Abs(y),0) i=i+1

x=x+xinc y=y+yinc

You might also like