A Pen By Captain Anonymous

Pen Settings

↑ Insert the most common viewport meta tag

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource
via CSS Lint

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource
via JS Hint

Code Indentation


Save Automatically?

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

Want a Run Button?

If active, the preview will update automatically when you change code.


              <script src=''></script>  
<div id="containerCreator" style="float:left"></div>
  <div id="wrapperInputCreator"style="float:left" >
  <div id="pictureWrapperCreator" style="margin:10px; ">
      <img width="100" height="100" name="0.jpg" src=""/>
  <img width="100" height="100" src=""/>
   <img width="100"  src=""/>
    <input id="generate" type="submit" value="Create" />
    <div  style="width:200px; height:200px; background:#dddddd" id="text"></div>




  var imageSource = $('#pictureWrapperCreator img').first().attr('src'); 
  var textVrch = '';
  var imageWidth;
  var imageHeight;
  imageHeight = 500;
  imageWidth = 500;
	var stage = new Kinetic.Stage({
    container: 'containerCreator',
    width: imageWidth,
    height: imageHeight
    var layer = new Kinetic.Layer();

    var imageObj = new Image();
    imageObj.onload = function(){
      var yoda = new Kinetic.Image({
        x: 0,
        y: 0,
        image: imageObj,
        width: 200,
        height: 200

   $('#pictureWrapperCreator img').click(function(){
	    imageSource = $(this).attr('src');
		imageObj.src = imageSource;
          callback: function(dataUrl) {
            $('#test').html('<img src="'+dataUrl + '"/>');//it does not work :(

	  imageObj.src = imageSource;
Loading ..................