W3cubDocs

/Godot 4.2

CanvasModulate

Inherits: Node2D < CanvasItem < Node < Object

A node that applies a color tint to a canvas.

Description

CanvasModulate applies a color tint to all nodes on a canvas. Only one can be used to tint a canvas, but CanvasLayers can be used to render things independently.

Properties

Color

color

Color(1, 1, 1, 1)

Property Descriptions

Color color = Color(1, 1, 1, 1)

  • void set_color ( Color value )
  • Color get_color ( )

The tint color to apply.

© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_canvasmodulate.html