Add the Nook "Image effect" component to this project, exactly as Nook ships it. Eleven ways to treat an image, from frosted square glass to pixels, dithering and characters. Steps 1. Check for `nook.json` in the project root. If it is missing, run `npx nook-ui@latest init` first (React or Next.js with Tailwind CSS v4). It adds the Nook tokens, the theme and `cn()`. 2. Run `npx nook-ui@latest add image-effect`. It writes `components/ui/image-effect.tsx` together with everything the component needs. Do not write the component from memory. 3. If you cannot run commands, fetch http://localhost:3000/r/image-effect.json, write every entry of `files` to the path it names, install the packages in `dependencies`, and repeat for each name in `registryDependencies`. 4. Use it where I ask. Start from this example: ```tsx "use client"; import * as React from "react"; import { ImageEffect, ImageEffectPicker, type ImageEffectName } from "@/components/ui/image-effect"; import { scene } from "./scene"; export default function ImageEffectDefault() { const [effect, setEffect] = React.useState("glass"); return

A new perspective

Color study, 2026
; } ``` API - `ImageEffect`: An image with CSS, SVG or canvas processing. Uses a 4:3 frame by default; change its aspect ratio with className. - `src / alt` (`string`): The source and required description of the image. - `effect` (`ImageEffectName`, default none): Which image treatment to apply. - `amount` (`number`, default 0.75): Effect intensity, clamped to zero through one. - `tileSize` (`number`): Square glass tile, pixel block or character cell size in CSS pixels. - `fit` (`"cover" | "contain"`, default cover): Crop to fill, or keep the whole image in the frame. - `crossOrigin` (`"anonymous" | "use-credentials"`): Optional image CORS mode. The source server must allow pixel access. - `...props` (`React.HTMLAttributes`): Everything the native element accepts, such as `id`, `aria-*` and event handlers. - `ImageEffectPicker`: A single-choice ToggleGroup containing every effect. IMAGE_EFFECTS exports the same choices for custom controls. - `value / defaultValue` (`ImageEffectName`, default none): Controlled or initial selection. - `onValueChange` (`(effect: ImageEffectName) => void`): Receives the selected effect. - Variant `effect`: none, blur, grayscale, monochrome, high-contrast, soft, glass, pixelate, bit, ascii, water (default none) Rules - Colors, radii, shadows and motion come from Nook tokens and classes such as `bg-primary`, `text-muted-foreground`, `border-border`, `rounded-lg` and `h-control`. Never hard-code them. - Do not restyle or simplify the file. Change how it looks through `className`, its props and the theme. - It must keep working with the keyboard, in light and dark mode, and in the sharp, soft and bold styles. - Accessibility: The original image always carries the required alt text. Canvas and ASCII layers are decorative. Unreadable cross-origin pixels fall back to the image. Water becomes static with reduced motion. The effect picker reuses ToggleGroup keyboard navigation. Done when the component renders like the example in light and dark mode and the project type-checks.