Note: This documentation is for the old 0.3.0 version of A-Frame. Check out the documentation for the current 1.6.0 version

The torus knot primitive creates pretzel shapes using the geometry component with the type set to torusKnot.


<a-torus-knot color="#B84A39" arc="180" p="2" q="7" radius="5" radius-tubular="0.1"></a-torus-knot>


Attribute Component Mapping Default Value
color material.color #FFF
metalness material.metalness 0
opacity material.opacity 1
p geometry.p 2
q geometry.q 3
radius geometry.radius 1
radius-tubular geometry.radiusTubular 0.2
repeat material.repeat None
roughness material.roughness 0.5
segments-radial geometry.segmentsRadial 36
segments-tubular geometry.segmentsTubular 100
shader material.shader standard
side material.side front
src material.src None
transparent material.transparent false