@qctrl/visualizer
Version:
The Q-CTRL Visualizer is a package for displaying animated 3d Bloch sphere visualizations.
15 lines (14 loc) • 585 B
TypeScript
import { MeshStandardMaterial, MeshBasicMaterial, Group } from "three";
import { Styles } from "../../styles/theme";
interface Sphere {
meshGroup: Group;
material: {
sphereMaterial: MeshStandardMaterial | MeshBasicMaterial;
outlineMaterial: MeshBasicMaterial;
};
}
/**
* Creates the main shape/polygon for an element/subscene
*/
export default function createSphere({ sphere: { opacity, color, outlineColor, outlineOpacity, roughness, metalness, }, sphereOutlineGeometry: { scalar, segments, isPoint, depth, outlineOnly, }, }: Styles): Sphere;
export {};