Skip to content

Commit dfb46ce

Browse files
Replace deprecated Color8 (#11361)
* Replaced deprecated `Color8` --------- Co-authored-by: A Thousand Ships <[email protected]>
1 parent faee8ba commit dfb46ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/plugins/editor/import_plugins.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ that the import wasn't successful.
315315

316316
var color
317317
if options.use_red_anyway:
318-
color = Color8(255, 0, 0)
318+
color = Color.from_rgba8(255, 0, 0)
319319
else:
320-
color = Color8(int(channels[0]), int(channels[1]), int(channels[2]))
320+
color = Color.from_rgba8(int(channels[0]), int(channels[1]), int(channels[2]))
321321

322322
This code takes the line of the file it read before and splits it in pieces
323323
that are separated by a comma. If there are more or less than the three values,

0 commit comments

Comments
 (0)