Add Color.from_rgba8 and deprecate Color8

This commit is contained in:
kobewi
2024-12-26 13:02:37 +01:00
parent 0f95e9f8e6
commit 4e48b19e1f
6 changed files with 31 additions and 6 deletions

View File

@@ -11,7 +11,7 @@
<link title="GDScript exports">$DOCS_URL/tutorials/scripting/gdscript/gdscript_exports.html</link>
</tutorials>
<methods>
<method name="Color8">
<method name="Color8" deprecated="Use [method Color.from_rgba8] instead.">
<return type="Color" />
<param index="0" name="r8" type="int" />
<param index="1" name="g8" type="int" />