diff --git a/docs/web-apis/image-generation-api.mdx b/docs/web-apis/image-generation-api.mdx index e1c7669..eee0683 100644 --- a/docs/web-apis/image-generation-api.mdx +++ b/docs/web-apis/image-generation-api.mdx @@ -130,7 +130,7 @@ For 3D renderings of PCBs, use the dedicated endpoints: ### Basic Usage ``` -https://svg.tscircuit.com/?svg_type=3d&code= +https://svg.tscircuit.com/?svg_type=3d&background_color=%23ffffff&code= ``` ### Parameters @@ -153,7 +153,7 @@ import React from 'react'; import { createSvgUrl } from '@tscircuit/create-snippet-url'; const Circuit3DViewer = ({ circuitCode }) => { - const viewerUrl = createSvgUrl(circuitCode, "3d"); + const viewerUrl = `${createSvgUrl(circuitCode, "3d")}&background_color=%23ffffff`; return (