Announcement

Collapse
No announcement yet.

Alternate way to gfx_TriangleFilled()?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Alternate way to gfx_TriangleFilled()?

    Hello,
    I noticed in the documentation that there is gfx_RectangleFilled() but no gfx_TriangleFilled(). Is there an alternate way to perform a fill for triangle?
    Thanks.

  • #2


    No, sorry, there is no filled triangle on Goldelox
    Mark

    Comment


    • #3


      Hmm ... this is a huge problem for me now.
      In GOLDELOX-SGC mode, I could fill the triangle by setting Pen Size to 0 but not in GOLDELOX-GFX mode?

      Comment


      • #4


        Filled triangle uses a lot of space and couldn't be fitted into the PmmC.



        Depending on your needs / circumstances perhaps you could try



        a) A table of endpoints and do your own triangle using lines (should be able to find algorithm on the net)

        b) Dec all measurements of triangle and repeat until 1 hits 0

        c) create a uSD image of a filled triangle and use that.
        Mark

        Comment


        • #5


          There is no triangle fill for Goldelox,
          not quite sure what you want to do, but about the only way
          you can achieve this is to build tables of line endpoints
          then draw line.
          Alternatively you could use images which would be very fast.
          Regards,
          Dave

          Comment


          • #6


            Thanks ESP & Mel. The data sets are base on information on serin() from external devices so pre-determining the images & save them on uSD would not be possible.
            I'll work along the lines on doing up some algorithm for this.

            Comment

            Working...
            X