Skip to content

CanvasModulate

eduardgushchin edited this page Oct 22, 2026 · 1 revision

Home | API by Category | Complete API Index | API Status

Field Value
Full name Electron2D.CanvasModulate
Namespace Electron2D
Kind class
Category API Rendering

Overview

Applies a color tint to its entire scene canvas.

Syntax

public class Electron2D.CanvasModulate

Remarks

One visible node controls each canvas. Other visible modulators wait until the selected node hides or leaves. Independent CanvasLayer and World canvases retain independent colors. This node contributes no geometry; its transform does not limit the tinted area.

Inherits: Entity

Detailed engine reference

Members

Member Kind Summary
public CanvasModulate() constructor Creates a visible detached modulator with opaque white color.
protected override System.Func<Electron2D.Node> CreateSceneInstanceFactory() method
public override System.String[] GetConfigurationWarnings() method
protected override System.Collections.Generic.IEnumerable<Electron2D.PropertyDescriptor> GetPropertyDescriptors() method
protected override System.Void OnNotification(System.Int32 what) method
public Electron2D.Color Color { get; set; } property Gets or sets the tint applied when this node is selected on its canvas.

Member Details

CanvasModulate()

Kind: constructor

public CanvasModulate()

Summary

Creates a visible detached modulator with opaque white color.

CreateSceneInstanceFactory()

Kind: method

protected override System.Func<Electron2D.Node> CreateSceneInstanceFactory()

GetConfigurationWarnings()

Kind: method

public override System.String[] GetConfigurationWarnings()

Remarks

Reports multiple visible modulators on the same canvas; only one controls its color.

GetPropertyDescriptors()

Kind: method

protected override System.Collections.Generic.IEnumerable<Electron2D.PropertyDescriptor> GetPropertyDescriptors()

OnNotification(System.Int32)

Kind: method

protected override System.Void OnNotification(System.Int32 what)

Color

Kind: property

public Electron2D.Color Color { get; set; }

Summary

Gets or sets the tint applied when this node is selected on its canvas.

Remarks

Each assignment commits, including equal values. Hidden or waiting nodes retain their authored color without changing the selected canvas. No redraw of sibling commands is required.

Value

Opaque white initially; all finite color components are accepted.

Exceptions

  • T:System.ArgumentException: A color component is nonfinite.
  • T:System.InvalidOperationException: An attached access is off-owner or mutation occurs during scene capture.
  • T:System.ObjectDisposedException: This node is disposed.

Clone this wiki locally