Loading…
KrulesExGamer
Translation changed |
|
KrulesExGamer
Contributor joined |
Contributor joined
a year ago
|
anonymous
Suggestion added |
|
None
String updated in the repository |
|
[codeblock]
var red = Color8(255, 0, 0) # Same as Color(1, 0, 0).
var dark_blue = Color8(0, 0, 51) # Same as Color(0, 0, 0.2).
var my_color = Color8(306, 255, 0, 102) # Same as Color(1.2, 1, 0, 0.4).
[/codeblock]
[b]Note:[/b] Due to the lower precision of [method Color8] compared to the standard [Color] constructor, a color created with [method Color8] will generally not be equal to the same color created with the standard [Color] constructor. Use [method Color.is_equal_approx] for comparisons to avoid issues with floating-point precision error.
[codeblock]
var red = Color8(255, 0, 0) # O mesmo que Color(1, 0, 0).
var dark_blue = Color8(0, 0, 51) # O mesmo que Color(0, 0, 0.2).
var my_color = Color8(306, 255, 0, 102) # O mesmo que Color(1.2, 1, 0, 0.4).
[/codeblock]