全言語ドキュメントにdrawtargetを追記しdraw_stateを両エンジン対応へ更新

このコミットが含まれているのは:
routersys committed 2026-07-01 14:03:59 +09:00
1 親 7519a11851
コミット 7f3e6b0019
8ファイル変更
+74 -10

検索条件に一致するファイルはありません

+10 -1
ファイルの表示
@@ -520,7 +520,16 @@
"draw_state" : a boolean that decides whether this effect emits
its working image. true outputs the working image; false passes
the input through unchanged. Use it to emit the working image
without obj.draw or setpixel, or to suppress the output. It
without obj.draw or setpixel, or to suppress the output. It works
in both engines.
"drawtarget" : switches the destination of obj.draw / obj.drawpoly.
"framebuffer" (default) composites into the frame buffer.
"tempbuffer" composites into the working tmp buffer in place. In
obj.setoption("drawtarget", "tempbuffer", w, h) the w, h give the
size to initialize the tmp buffer; omit them to keep it. Bring the
tmp result back to the working image with
obj.copybuffer("obj", "tmp"). Compositing into tempbuffer is
normal (source-over); blend applies to framebuffer drawing. It
applies to drawing scripts that run on the MoonSharp engine.
o obj.pixeloption(name, value)