背景色を変える(透過背景にする)。

w = World.New('myworld')
w.setCurrent()
w.skytype = 0
w.hor = [0.3, 0.6, 1.0]

 新しい世界(World)を作成し、その世界を使用する。「.hor」で背景の RGB 値を指定。タプル("()")ではなくてリスト("[]")であることに注意。



世界(World)の詳細はこちら→ Module World



 図を透過背景にするには

scene = Scene.GetCurrent()
context = scene.getRenderingContext()

context.enableRGBAColor()
context.enablePremultiply()

context.render()

 現在のシーン(scene)からレンダリングに関するインスタンス(context)を取得。context を通じて透過色を有効にする。



シーン(Scene)の詳細はこちら→ Module Scene
レンダー(Render)の詳細はこちら→ Module Render