Results 1 to 2 of 2

Thread: Shading a triangle

  1. #1

    Thread Starter
    Hyperactive Member Bearnerd's Avatar
    Join Date
    Apr 2006
    Location
    Malaysia
    Posts
    290

    Question Shading a triangle

    I have a code below to draw a triangle network




    VB Code:
    1. m = 1
    2.        
    3.         While Not EOF(2)
    4.            
    5.             Input #2, TIN.Node1, TIN.Node2, TIN.Node3
    6.            
    7.             picDraw.Line (XY(TIN.Node1, 0), XY(TIN.Node1, 1))-(XY(TIN.Node2, 0), _
    8.                           XY(TIN.Node2, 1)), vbBlue
    9.                          
    10.             picDraw.Line (XY(TIN.Node2, 0), XY(TIN.Node2, 1))-(XY(TIN.Node3, 0), _
    11.                           XY(TIN.Node3, 1)), vbBlue
    12.                          
    13.             picDraw.Line (XY(TIN.Node3, 0), XY(TIN.Node3, 1))-(XY(TIN.Node1, 0), _
    14.                           XY(TIN.Node1, 1)), vbBlue
    15.            
    16.             m = m + 1
    17.        
    18.         Wend



    How can I fill a color let say green into the triangle so it will look like solid triangle rather than just a line network. Please can anybody help..
    Last edited by Bearnerd; Apr 11th, 2006 at 02:50 AM.

  2. #2
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,728

    Re: Shading a triangle

    The FloodFill or ExtFloodFill APIs may help.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width