Computer Science Canada

Program is flashing

Author:  crimson [ Thu Jan 03, 2013 8:32 pm ]
Post subject:  Program is flashing

What is it you are trying to achieve?[/b][/size]
Draw a house


What is the problem you are having?
Certain line continuously flash


Describe what you have tried to solve this problem
I don't know what the problem is

[size=14][b]Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)


loop
%house top
Draw.ThickLine(215,196,285,250,5,4)
Draw.ThickLine(285,250,350,196,5,4)
Draw.ThickLine(350,196,405,220,5,4)
drawline(350,198,405,220,12)%bottom
drawline(350,198,287,251,12)%left
drawline(287,250,360,265,12)%top
drawline(405,220,360,265,12)%left
drawfill(355,224,12,12)
%house front rectangle and triangle
drawfillbox(220,110,350,196,92)
drawline(220,196,285,247,92)
drawline(347,196,280,250,92)
drawline(220,196,350,196,92)
Draw.Fill(230,198,92,92)
%side of house(3D)
drawline(350,110,350,194,92)%left
drawline(350,110,405,130,92)%bottom
drawline(350,194,405,217,92)%top
drawline(405,130,405,217,92)%right
drawfill(360,150,92,92)
%border of house
drawline(350,196,350,110,22)
drawline(220,110,220,196,2)
drawline(405,220,405,130,2)
drawline(350,110,405,130,2)
drawline(220,110,350,110,2)
end loop

Author:  Insectoid [ Thu Jan 03, 2013 8:50 pm ]
Post subject:  RE:Program is flashing

http://compsci.ca/v3/viewtopic.php?t=12610

Author:  Qwertyuiop K [ Thu Jan 03, 2013 9:51 pm ]
Post subject:  RE:Program is flashing

You are looping multiple lines with same/similar coordinates over each other.

Remove the loop and it should be fine.


: