Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

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.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <link href=",500,600,700" rel="stylesheet">
<script src=""></script>
<!--   <script src=""></script> -->
<canvas id="canvas" class = "theCanvas" width="800" height="250" style=""></canvas>


                body {
  background: #fcfcfc;
  font-size: 16px;
  font-family: 'Oswald', sans-serif;
  color: #444;
  border: 5px solid #444;
  width: 95%;
  height: 250px;
  margin-left: auto;
  margin-right: auto;

  position: relative;
 margin-left: auto;
    margin-right: auto;
    width: 80%;
  font-family: 'Oswald', sans-serif;


h1 {
  font-size: 260%;
  line-height: 1.2em;


                var poem = ["A Language", "That Can", "Be Interacted", "With"];

//I really want a simple equation that counts the number of characters and multiplies that by x where x is the number per character that a string would take up on a grid
var distances = [20, 210, 360, 590];
var canvas = new fabric.Canvas('canvas');
// var instructions = new fabric.Text("Click on any of the words to manipulate them ", {
// fontFamily:  'Oswald',
// fontSize:20,
// fill: '#444',
//   left: 10,
//   hasControls: true,
//   hasBorders: true,
//   top: 300});

// canvasTwo.add(instructions)

var yDown = 50;
var xAcross = 120;
//how to I update this so that each time a new thing is added to the array it redraws or draws the new One
//It would be the equivelant of update in D3
for (i = 0; i < poem.length; i++) {
  var text = new fabric.Text(poem[i], {
    fontFamily: 'Oswald',
    fontSize: 42,
    fill: '#444',
    left: distances[i]+40,
    // top: 50*i });
    top: yDown

  // xAcross = distance[i];
  // yDown = yDown+10;

    //     text.hasControls = true;
    // text.hasBorder = true;

text.hasControls = true;
text.hasBorder = true;
canvas.selectionColor = 'rgba(0,255,0,0.3)';
canvas.selectionBorderColor = 'red';
canvas.selectionLineWidth = 5;