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.

            
              <html>
<head>
  <meta charset="utf-8">
  <title>Empty project</title>
  <script type="text/javascript" src="https://assets.runemadsen.com/rune.browser.js"></script>

</head>
<body>
  <div id="canvas"></div>
  
</body>
</html>

            
          
!
            
               body {
      background-color: #EAEAEA;
    }
    #canvas svg {
      background-color: #2a2a2a;
      box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.06),inset -1px -1px 1px 0 rgba(0, 0, 0, 0.02);
      border: 1px solid #E2E2E2;
      border-bottom-color: #CECECE;
    }
            
          
!
            
              //fromt https://printingcode.runemadsen.com/lecture-form-2/
//https://runemadsen.github.io/rune.js/documentation.html
var r = new Rune({
  container: "#canvas",
  width: 600,
  height: 600
});

var radius = 70;
var numRects = 80;
var angle = 360 / numRects;
var group = r.group(r.width / 2, r.height / 2);

for(var i = 0; i < numRects; i++)
{
  var x = Math.cos(Rune.radians(i * angle)) * radius;
  var y = Math.sin(Rune.radians(i * angle)) * radius;
  r.rect(x, y, 20, 150, group)
    .stroke(false)
    .fill('hsv', 180, 70, 30, 0.5) // HSVA
    .rotate(i * angle, 0, 0, true);
}

r.draw();
            
          
!
999px
Loading ..................

Console