diff --git a/packages/gem-examples/src/benchmark/index.ts b/packages/gem-examples/src/benchmark/index.ts index d10b3d44..08a953aa 100644 --- a/packages/gem-examples/src/benchmark/index.ts +++ b/packages/gem-examples/src/benchmark/index.ts @@ -141,10 +141,14 @@ export class App extends GemElement { () => html``, )}
- ${this.#pixelsPosition.map((index) => { - const color = pixels.slice(index, index + 4) as unknown as RGBA; - return html``; - })} + ${repeat( + this.#pixelsPosition, + (_, i) => i, + (index) => { + const color = pixels.slice(index, index + 4) as unknown as RGBA; + return html``; + }, + )}
`; }