MCPcopy
hub / github.com/midrender/revideo / token

Method token

packages/2d/src/lib/components/Code.ts:202–206  ·  view source on GitHub ↗
(ctx, text, position, color, selection)

Source from the content-addressed store, hash-verified

200 */
201 @initial<DrawHooks>({
202 token(ctx, text, position, color, selection) {
203 ctx.fillStyle = color;
204 ctx.globalAlpha *= map(0.2, 1, selection);
205 ctx.fillText(text, position.x, position.y);
206 },
207 })
208 @signal()
209 public declare readonly drawHooks: SimpleSignal<DrawHooks, this>;

Callers 1

drawMethod · 0.80

Calls 1

mapFunction · 0.90

Tested by

no test coverage detected