1

Rebolでどのように角丸長方形を描き、グラデーションカラーで塗りつぶしますか?例が見つかりません。

ありがとう。

4

2 に答える 2

3

顔の効果ブロックで DRAW を使用する必要があります。

view layout [
    box effect [ ; default box face size is 100x100
      draw [

        ; information for the next draw element (not required)
        line-width 2.5 ; number of pixels in width of the border
        pen black      ; color of the edge of the next draw element

        ; fill pen is a little complex:
        fill-pen 10x10 0 90 0 1 1 0.0.0 255.0.0 255.0.255

        ; the draw element
        box     ; another box drawn as an effect
          5     ; size of rounding in pixels
          10x10 ; upper left corner
          90x90 ; lower right corner
      ]
    ]
]

FILL-PEN をさまざまな色やグラデーション モードで使用する方法を学習するには、REBOL デスクトップの REBOL and Tools の下に移動し、Grad Lab を試してください。表示されているソース コードを使用してさまざまな設定を試すことができ、独自の描画ブロックに貼り付けることができます。

お役に立てれば。:-)

于 2009-08-03T16:54:28.547 に答える
1

デスクトップの左下隅にある「ローカル」テキストをクリックすることを忘れないでください。そうしないと、index.r ファイルを取得するためにオンラインになりません。

于 2009-08-10T19:25:03.067 に答える