0

fill-pen http://www.mail-archive.com/rebol-bounce@rebol.com/msg02019.htmlについての議論がここにあり ます。

しかし、立方体、ダイヤモンドなどに関するドキュメントが表示されません... rebolの公式ドキュメントの塗りつぶしペンの効果?

グロー効果のある丸い長方形を描画しようとしていますが、遊んでいるパラメーターをよく理解していないため、希望どおりのものを正確に取得できません(グロー効果は中心からではなく開始したいです)暗い左上隅から):

view layout [
    box 278x185 effect [ ; default box face size is 100x100
      draw [
        anti-alias on
        ; 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
        fill-pen radial 20x20 5 55 5 5 10 0.0.0 55.0.5 55.0.5

        ; the draw element
        box     ; another box drawn as an effect
          15     ; size of rounding in pixels
          0x0 ; upper left corner
          278x170 ; lower right corner
      ]
    ]
]
4

1 に答える 1

0

最後に私はそれを作ったので、どうやって手に入れたのかわからない:)

代替テキスト
(出典: reboltutorial.com )

view banner: layout/size [
    ;layout (window client area) size is 278x170 at the end of the spec block
    at 0x0 ;put the banner on the top left corner
    box 278x170 effect [ ; default box face size is 100x100
      draw [
        anti-alias on
        ; 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
        ;fill-pen radial 100x50 5 55 5 5 10 55.0.5 30.10.10 55.0.5
        ;fill-pen radial 100x50 5 55 5 10 10 55.0.5 30.10.10 71.0.6
        fill-pen radial 100x50 5 55 5 10 10 71.0.6 30.10.10 71.0.6

        ; the draw element
        box     ; another box drawn as an effect
          15     ; size of rounding in pixels
          0x0 ; upper left corner
          278x170 ; lower right corner
      ]
    ]
    pad 30x-150
    Text "Experiment" font [name: "Impact" size: 24 color: white]
    image http://www.rebol.com/graphics/reb-logo.gif
] 278x170
于 2010-05-24T15:01:50.413 に答える