Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class LightRemapperInternals.BaseLightRemapper
import { LightRemapperInternals } from "https://deno.land/x/remapper@2.1.0/src/light_remapper.ts";
const { BaseLightRemapper } = LightRemapperInternals;

Constructors

new
BaseLightRemapper(condition?: Condition)

Properties

protected
returnAddCondition: (condition: Condition) => unknown
protected
returnAddProcess: (process: Process) => unknown
addCondition: (condition: Condition) => unknown

A condition that events must pass.

addProcess: (process: Process) => unknown

A function to edit the event.

conditions: Condition[]
multiplyColor: (rgb: number, alpha?) => unknown

Multiplies the colors of the event. Applies to gradients too.

processes: Process[]
run: (log?) => unknown

Run the algorithm.

setType: (type: number) => unknown

Sets the type of the event.

Methods

processEvents(events: EventInternals.AbstractEvent[], log?)
test(ids: number[])

Test the algorithm with some lightIDs which will be logged.