Class
ColorPlugin
View sourceExtendsPlugin
Adds Color component support to an App.
Register this plugin to make Color available as a structured color
component. It depends on CorePlugin and ReflectPlugin.
Registering ColorPlugin does not install missing dependencies
automatically.
Examples
import { App } from '@wimaengine/app'
import { ColorPlugin } from '@wimaengine/color'
import { CorePlugin } from '@wimaengine/core'
import { ReflectPlugin } from '@wimaengine/reflect'
new App()
.registerPlugin(new ReflectPlugin())
.registerPlugin(new CorePlugin())
.registerPlugin(new ColorPlugin())
.run()Constructor
Methods
register(app: App): void
View sourceEnables color component support for an App.
requires(): TypeId[]
View sourceReturns the plugin IDs required for color component support.
The app must already have CorePlugin and ReflectPlugin
registered. Registering this plugin does not install them automatically.
