How create a shading rectangle

Is possible create a shading rectangle?

I have a rectangle created with RUN pdf_rect2(...) but i would like that this rectangle has a shading.

Thanks.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Use pdf_rect() instead

pdf_rect2() only uses pdf_stroke_color() for the rectangle border.

pdf_rect() uses pdf_stroke_color() and pdf_stroke_fill(). Set pdf_stroke_fill() for the interior color.

Using 2 pdf_rect() commands can create a shadowed rectangle.

Be careful, RUN pdf_rect() should be done before features that need to be visible within the border.