提交 ea27c14b 编写于 作者: 三月三net's avatar 三月三net

Python超人-宇宙模拟器

上级 14a0d4b5
......@@ -123,7 +123,7 @@ class Planet(Entity):
color=self.plant_color,
position=pos,
rotation=rotation,
# double_sided=True
double_sided=True
)
if hasattr(self.body_view.body, "torus_stars") or \
......@@ -147,7 +147,7 @@ class Planet(Entity):
self.name_text = Text(self.body_view.body.name, scale=1, billboard=True, parent=self,
font=UrsinaConfig.CN_FONT, background=True,
origin=(0, 0))
self.name_text.background.color = color.rgba(b_color[0], b_color[1], b_color[2], 0.3)
self.name_text.background.color = color.rgba(b_color[0], b_color[1], b_color[2], 0.5)
# self.name_text.scale = self.scale
inverse_color = get_inverse_color(b_color)
self.name_text.color = color.rgba(inverse_color[0], inverse_color[1], inverse_color[2], 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册