Scene


Scene 元素是視覺標記的容器。每個錶面都必須包含一個 Scene 元素。

語法

<Scene backgroundColor="argb-color">
    <!-- Only the most common inner element is shown here. -->
    <Group ... />
    ...
</Scene>

屬性

Scene 元素可包含 backgroundColor 屬性,該屬性可設為 ARGB 顏色值,代表錶面情境的背景顏色。

如果未定義這個屬性或設為無效值,系統會使用預設值 ##ff000000 (不透明黑)。

內部元素

Scene 元素必須包含至少一個下列內部元素: