MCPcopy Index your code
hub / github.com/anomalyco/oc-plugin-rainbow

github.com/anomalyco/oc-plugin-rainbow @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
81 symbols 191 edges 5 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

oc-plugin-rainbow

Theme-aware rainbow post-processing for the OpenCode TUI.

Rainbow stripe preview

It adds:

  • animated foreground color bands for neutral text
  • optional animated background tint for neutral surfaces
  • a built-in settings dialog for toggling and tuning the effect live

Installation

Install from the CLI:

opencode plugin oc-plugin-rainbow

Or from OpenCode commands:

  1. Press Ctrl+P
  2. Select Install Plugin
  3. Enter oc-plugin-rainbow

Requires OpenCode >=1.3.14.

Options

Plugin options can be configured via the tui.json config file.

TUI

  • enabled (boolean, default true)
  • fg (boolean, default true): animate neutral text colors
  • bg (boolean, default true): animate neutral background surfaces
  • speed (number, default 0.008, range 0-0.03)
  • turns (number, default 3, range 0.25-8)
  • glow (number, default 0.05, range 0-0.15)
  • keybinds.logo_splash (string, default ctrl+shift+r): trigger the white-flash logo route

Example:

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin": [
    [
      "oc-plugin-rainbow",
      {
        "enabled": true,
        "fg": true,
        "bg": true,
        "speed": 0.008,
        "turns": 3,
        "glow": 0.05
      }
    ]
  ]
}

Open Rainbow settings from the command palette or run /rainbow-settings to tune the effect live. Those changes are stored locally per user.

Local use

Point a TUI config at the package directory:

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin": [["../../oc-plugin-rainbow", { "enabled": true }]]
}

The package exports its TUI entry at ./tui and provides default config via package.json.

Core symbols most depended-on inside this repo

rgba
called by 27
bench/post-process.ts
clamp
called by 10
tui.tsx
colorChanged
called by 9
rainbow-post-process.ts
storeColor
called by 9
rainbow-post-process.ts
mix
called by 8
bench/post-process.ts
value
called by 8
bench/post-process.ts
colorInt
called by 7
rainbow-post-process.ts
num
called by 6
tui.tsx

Shape

Function 81

Languages

TypeScript100%

Modules by API surface

bench/post-process.ts32 symbols
tui.tsx25 symbols
rainbow-post-process.ts16 symbols
settings-dialog.tsx5 symbols
logo-screen.tsx3 symbols

For agents

$ claude mcp add oc-plugin-rainbow \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact