mdiapp+ 1.11.24 (32/64bit)

http://mdiapp.sakura.ne.jp/plus/mdiapp+1_11_24.zip

1.11.24 での変更点

  • ブラシスクリプトの関数を追加しました
  • bs_setinterval( px )
    • main 関数が呼び出される頻度を、px指定で設定できます
    • 何も指定しないと、main 関数はブラシサイズに応じた適切な頻度で呼び出されます
    • bs_setinterval( 1 ) を指定すれば、約1pxごとに
    • bs_setinterval( 0.1 ) を指定すれば、約0.1pxごとに main 関数が呼び出されます
    • 0.01 から 1 の間で指定できますが、値を小さくするほど負荷は高くなります
  • bs_stroke_length()
  • 頂いているご要望以外の更新ばかりで申し訳ありません…

bs_setinterval() example

function main( x, y, p )

  bs_pixel_set( x, y, 0, 0, 0, 10 )
  count = count + 1
  return 1

end

function last( x, y, p )

  bs_debug_log( "count -> " .. count )
  local px = bs_stroke_length()
  bs_debug_log( "stroke length -> " .. px )

end

count = 0

--If bs_setinterval() is not specified, the main function will be
--called at the appropriate interval according to the brush size.

--The main() function is called about every 1 pixel.
bs_setinterval( 1 )

--The main() function is called about every 0.1 pixel.
--bs_setinterval( 0.1 )

--The main() function is called about every 0.01 pixel.
--bs_setinterval( 0.01 )