Flowchart Dada Dot 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

Z#=0 Z#=1

if Abs(dx)>Abs(dy)

step#=Abs(dx)

if Z #= 0 if Z #= 0 N-

N
step#=Abs(dy)

If Z#= 0

xinc=dx/step# glVertex3f(A bs(x), Abs(y),0) glVertex3f(Abs( x), Abs(y),0) yinc=dy/step#

for i = 0 to step# If % 5=0 i=i+1

x=x+xinc y=y+yinc

You might also like