Creating triangles in Java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • js06am
    New Member
    • Feb 2007
    • 8

    #1

    Creating triangles in Java

    I can't for the life of me work out just how to draw a triangle in java. Using the g.fillRect etc has been easy for rectangles but I have absolutely no idea where to start with triangles. Any suggestions?
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by js06am
    I can't for the life of me work out just how to draw a triangle in java. Using the g.fillRect etc has been easy for rectangles but I have absolutely no idea where to start with triangles. Any suggestions?
    Use fillPolygon

    Comment

    • js06am
      New Member
      • Feb 2007
      • 8

      #3
      thank you that was just what I needed to do!

      Comment

      Working...