cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <svg viewBox='-13 -7 34 17' 
		 xmlns='http://www.w3.org/2000/svg' 
		 xmlns:xlink='http://www.w3.org/1999/xlink'>
	<marker id='a' viewBox='-8 -4 8 8' 
					markerWidth='5' markerHeight='5' 
					orient='auto' refX='-7'>
		<path d='M-8 0 0-4V4'/>
	</marker>
	<marker id='a1' viewBox='0 -4 8 8' 
					markerWidth='5' markerHeight='5' 
					refX='7' orient='auto'>
		<path d='M8 0 0-4V4'/>
	</marker>
	
	<!-- guides -->
	<path d='M13-6H0V9
					 M0 0h11M0-2h9M0-3h7M0-4h9M0 6h13M0 3h8
					 M-6 0V9M-3 3V7M6 0V9M3 3V7'/>
	
	<!-- the big circle -->
	<circle r='6'/>
	
	<!-- smaller (inner) circles -->
	<g id='c'>
		<circle r='3' cy='3'/>
		<circle r='1' cy='3'/>
	</g>
	<use xlink:href='#c' y='-6'/>
	
	<path d='M0 6
					 A6 6 0 0 1 0-6
					 A3 3 0 0 1 0 0
					 A3 3 0 0 0 0 6'/>
	
	<!-- small marker circles -->
	<g id='q'>
		<g id='p'>
			<circle r='.1' cy='2'/>
			<circle r='.1'/>
		</g>
		<use xlink:href='#p' y='4'/>
		<circle r='.1' cy='3'/>
	</g>
	<use xlink:href='#q' y='-6'/>
	<circle r='.1' cx='-6'/>
	<circle r='.1' cx='6'/>
	<circle r='.1' cx='-3' cy='3'/>
	<circle r='.1' cx='3' cy='3'/>
	
	<!-- meas lines & text -->
	<g id='m'>
		<path d='M8-6v2'/>
		<text x='8.2' y='-4.8'>r/3</text>
	</g>
	<use xlink:href='#m' y='2'/>
	<use xlink:href='#m' y='4'/>
	<g id='m1'>
		<path d='M10.5 0v6'/>
		<text x='10.7' y='3.25'>r</text>
	</g>
	<use xlink:href='#m1' y='-6'/>
	<g id='m3'>
		<path d='M-6 8.5h6'/>
		<text x='-3.15' y='9.3'>r</text>
		<g id='m2'>
			<path d='M-6 6.5h3'/>
			<text x='-5.15' y='7.3'>r/2</text>
		</g>
		<use xlink:href='#m2' x='3'/>
	</g>
	<use xlink:href='#m3' x='6'/>
	<g id='m4'>
		<path d='M7 0v3'/>
		<text x='7.3' y='1.7'>r/2</text>
	</g>
	<use xlink:href='#m4' y='3'/>
	<g>
		<path d='M6.5-2v1m0-3v1'/>
		<text x='5.8' y='-2.3'>r/6</text>
		<path d='M12.5-6V6'/>
		<text x='13' y='.25'>d = 2·r</text>
		<text x='9' y='8'>r = d/2</text>
	</g>
	
	<!-- diameter end points -->
	<text y='-6.2'>A</text>
	<text y='5.8'>B</text>
</svg>
            
          
!
            
              svg {
	stroke: #444;
	stroke-width: .08px;
	fill: none;
	font: .65px consolas
}

[r='6'] { stroke: #9351a6 }
[r='3'] { stroke: #d49b00 }
[r='1'] { stroke: #e18728 }
[r*='.1'] { fill: #bbb }

#a1 + * {
	stroke: #bbb;
	stroke-width: .05px
}

[d*=A] { stroke: #be4c39 }

g {
	marker-start: url(#a);
	marker-end: url(#a1)
}

[id*=a] *, text {
	stroke: none;
	fill: #444
}

g ~ text {
	font: italic .65px tahoma;
	fill: #be4c39
}
            
          
!
999px
Loading ..................

Console