Announcement

Collapse
No announcement yet.

Gradient Fill Rectangle

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

  • Gradient Fill Rectangle

    Hello!

    I'm new to the system and want to display a rectangle of variable height but with a gradient fill (say black to green to black) across the width of the rectangle. I also want to be able to change that center color in real time, say from green to yellow to red. How should I approach this?

    Thanks!

    RJ

  • #2
    Hello,

    Welcome to the forum. You could try ths command gfx_RoundGradient. You can find full details and syntax of this command on page 177 of this datasheet.

    https://www.4dsystems.com.au/product...ions_R_2_0.pdf

    I hope this helps

    Best regards

    Paul

    Comment


    • #3
      Thanks, not sure how I didn't find that document earlier but that certainly helps!

      RJ

      Comment


      • #4
        Related, is there any way to do a radial gradient? For instance, I want a circle with a gradient fill such that it's black in the middle fading to red at the perimeter.

        Thanks!

        RJ

        Comment


        • #5
          Hi RJ,

          Sorry for the delayed response. We have come up a routine that somehow implements a radial gradient.
          Kindly implement the attached file.
          Hope this will help.

          Best regards,
          Attached Files
          Vince_4D

          Comment

          Working...
          X