Skip to content

WireLamp

namespace Griff.Modules.Contraptions;
public sealed class WireLamp : Component

A lamp to wire up: its input “On” lights it from 0 (dark) to 1 (full), tinting its sprite from OffColor to OnColor and turning up a Light on it.

This is a component: its saved properties are on its component page.

public float Brightness { get; set; }

How brightly it’s lit, from 0 to 1. Wire something to its “On”, or set it.

public Color OffColor { get; set; }

Its color when off; it blends to OnColor as it brightens.

public Color OnColor { get; set; }

Its color fully lit.