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@2.1.0/src/mod.ts";
const { LightEvent } = EventInternals;

Constructors

new
LightEvent(json: Record<string, any>, type: number)

Properties

color: ColorType
duration: number
easing: EASE
endColor: ColorType
gradientEasing: EASE
lerpType: string
lightGradient
lightID: LightID
startColor: ColorType

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.

gradient(
startColor: ColorType,
endColor: ColorType,
duration: number,
easing?: EASE,
)

Create a light gradient between 2 colors. This feature is deprecated in Chroma.

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.