Need help with drawfill function
Author |
Message |
Deshwitat

|
Posted: Mon Apr 19, 2004 6:01 pm Post subject: Need help with drawfill function |
|
|
I'm new to all this Turing programming stuff and just started learning a few days ago. I've been trying to fill in a triangle with the color but I haven't been able to get it to work. If anyone can help me out with what to put into the x, and y values that'd be awesome.
Heres what I have.
%program to draw a happy face
setscreen ("graphics:640;480,nocursor")
%first, draw the yellow triangle
drawline (250, 150, 400, 150, 14)
drawline (250, 150, 325, 350, 14)
drawline (400, 150, 325, 350, 14)
drawfill (x, y, 14, 14)
%next, draw the eyes
drawline (300, 250,310,250,12)
drawline (350, 250,340,250,12)
%now, draw the mouth
drawarc (325, 200, 10, 10, 0, 180, 10)
Heh...suppose to be a triangle with a sad face...wierd assignment from the teacher... |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Tony

|
|
|
|
 |
Deshwitat

|
Posted: Mon Apr 19, 2004 6:14 pm Post subject: (No subject) |
|
|
ahhhhh...~~ I get it...haha...still getting used to using Turing...heh thanks for the advice  |
|
|
|
|
 |
|
|