Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/remapper/src/mod.ts>EventInternals.LightEvent

A framework for Beat Saber map scripting.
Go to Latest
class EventInternals.LightEvent
import { EventInternals } from "https://deno.land/x/remapper@3.0.0/src/mod.ts";
const { LightEvent } = EventInternals;

Constructors

new
LightEvent(json: Json, type: number)

Properties

color: ColorType

The color of the event.

easing: EASE

The easing for transition events. Goes on start event.

lerpType: "RGB" | "HSV"

The color interpolation for transition events. Goes on start event.

lightID: LightID

The lightIDs to target.

Methods

Remove the subclass of the event, giving access to all properties, but can allow for invalid data.

fade(color?: ColorType | boolean, lightID?: LightID)

Create an event that fades the lights out.

flash(color?: ColorType | boolean, lightID?: LightID)

Create an event that flashes the lights.

in(color?: ColorType | boolean, lightID?: LightID)

Create an event that makes the lights fade in to this color from the previous.

off(lightID?: LightID)

Create an event that turns lights off

on(color?: ColorType | boolean, lightID?: LightID)

Create an event that turns lights on.