css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <link href='//fonts.googleapis.com/css?family=Signika+Negative:300' rel='stylesheet' type='text/css'>
<content>
  <article>
    <h1>PROYECTAMOS</h1>
    <p>Ideamos <span class="me1">proyectos culturales</span> y corporativos a la medida exacta de nuestros clientes. Imaginamos juntos cualquier evento o <span class="me2">experiencia creativa</span>, estudiando su viabilidad y planificando su puesta en
      marcha. <span class="me3">Realizamos</span> y programamos festivales, exposiciones, ciclos y <span class="me4">proyectos didácticos</span>, dando contenido a equipamientos culturales y espacios patrimoniales.</p>
    <h1>PRODUCIMOS</h1>
    <p>Organizamos todo tipo de eventos, actividades culturales, festivales o congresos, coordinando los procesos logísticos y facilitando la contratación de las personas y los equipos técnicos precisos.</p>
    <h1>COMUNICAMOS</h1>
    <p>Estamos comprometidos con el desarrollo de la comunicación en el ámbito de la cultura. Planificamos y realizamos todas las acciones de comunicación necesarias para que tu propuesta brille con luz propia.</p>
    <h1>EVALUAMOS</h1>
    <p>Exploramos las posibilidades de éxito de tu proyecto y te apoyamos en su realización. Realizamos a medida estudios sectoriales en cultura y patrimonio. Evaluamos proyectos, realizando estudios de audiencias, informes técnicos y memorias.</p>
  </article>
  <controls id="controls">
  </controls>
</content>
            
          
!
            
              
body {margin: 2px;/*border:1px dotted red;*/font-family: Signika Negative, sans-serif;font-weight: 300;font-size:16px;color: rgba(24, 24, 24, .8);background-color: rgba(245,245,245, 1);
  ;}
content{
  margin:10px 10px 200px 10px;padding: 10px;display:block;/*border:1px dotted grey;*/
}
controls {
  margin:12px;
  padding: 10px 10px;
  position: fixed;
  bottom: 0;left:0;right:0;
  height:60px;
  background:rgba(0,0,0,.8)
  /*border:1px dotted green;*/
}
.me1,.me2,.me3,.me4{
  text-transform:uppercase;
  font-weight:700;
}
            
          
!
            
              console.clear();
console.log('READY OR NOT, Press a button!');
var bodyBkgColor=$('body').css('background-color');
var bodyColor=$('body').css('color');
var tl = new TimelineMax();
document.addEventListener('keyup', (event) => {
  const keyName = event.key;
  var kn = (keyName * 1);
  if (kn >= 1 && kn <= animations.length) {
    undoStuff();
    animations[kn - 1]();
  }
}, false);
var puppet = $('h1');
var split = new SplitText(puppet, {type: "chars"});
function animationComplete() {
  console.log('animationComplete');
  tl.clear().time(0);
  split.revert();
  undoStuff();
  puppet.removeClass('text-animating');
}
var undoStuff = () => {
  TweenMax.to('body', 0, {backgroundColor:bodyBkgColor, color:bodyColor, ease:Power3.easeOut});
};
function isAnimating(_puppet){
  if (_puppet.hasClass('text-animating')) {
      console.log('not animating cause its animating');
    return true;
  }
  return false;
}
function setupAnim(_splitType){
    puppet.addClass('text-animating');
    split = new SplitText(puppet,{type:_splitType});
    $('body').on( 'mousemove', function(event) {
      console.log('mouse-interruptus');
      animationComplete();
      $(this).off(event);
    });
}
var f1 = function(params) {
  console.log("function > f1 --params:" + params);
  //if(isAnimating(puppet))
    animationComplete();
    puppet = $('.me1');
    if(isAnimating(puppet)) return;
    setupAnim('chars');
  tl.staggerFrom(split.chars, 0.8, {
    opacity: 0,
    scale: 0,
    y: 80,
    rotationX: 180,
    transformOrigin: "0% 50% -50",
    ease: Back.easeOut
  }, 0.01, "+=0", animEnd);
  function animEnd(){
    console.log('animEnd');
    animationComplete();
  }
}
var f2 = function(params) {
  console.log("function > f2 --params:" + params);
  if(isAnimating(puppet)) animationComplete();
    puppet = $('.me2');
    if(isAnimating(puppet)) return;
    setupAnim('chars');
  var numChars = split.chars.length;
  var animaanimationCompletetedChars = 0;
  for(var i = 0; i < numChars; i++){
    tl.from(split.chars[i], 2, {opacity:0,onComplete:animEnd}, Math.random() * .7);
  }
  function animEnd(){
    animatedChars++;
    if(animatedChars==numChars){
      animationComplete();
    }
  }
}
var f3 = function(params) {
  console.log("function > f2 --params:" + params);
  if(isAnimating(puppet)) animationComplete();
    puppet = $('.me3');
    if(isAnimating(puppet)) return;
    tl.clear().time(0);
    puppet.addClass('text-animating');
    setupAnim('chars');
  tl.staggerFrom(split.chars, .8, {
    opacity: 0,
    rotationY: 180,
    ease: Back.easeOut
  }, .05, "+=0", animEnd);
  function animEnd(){
    console.log('animEnd');
    animationComplete();
  }
}
var f4 = function(params) {
  console.log("function > f4 --params:" + params);
  if(isAnimating(puppet)) animationComplete();
  puppet = $('article>p:first');
  if(isAnimating(puppet)) return;
  setupAnim('chars');
  var numChars = split.chars.length;
  var animatedChars = 0;
  for(var i = 0; i < numChars; i++){
    tl.from(split.chars[i], .8, {opacity:0,onComplete:animEnd}, Math.random() * .7);
   }
   function animEnd(){
     animatedChars++;
     if(animatedChars==numChars){
        animationComplete();
     }
   }
}
var f5 = function(params) {
  console.log("function > f5 --params:" + params);
  //if(isAnimating(puppet)) 
  animationComplete();
  puppet = $('.me4');
  if(isAnimating(puppet)) return;
  setupAnim('chars');
  var amplitude = 10;
  var time = 2;
  split.chars.forEach(function(letter, i) {
    var delay = -i / split.chars.length * time;
    tl.fromTo(letter, time / 2, {y: -amplitude}, {y: amplitude,ease: Sine.easeInOut,repeat: -1,yoyo: true}, delay);
  });
}
var f6 = function(params) {
  console.log("function > f6 --params:" + params);
  animationComplete();
  puppet = $('article>p:first');
  if(isAnimating(puppet)) return;
  setupAnim('words');
  var secondColor = 'rgba(22,22,22,1)';//'rgba(255,255,255,.8)'
  TweenMax.to('body', .5, {backgroundColor:"rgba(22,22,22,1)",color:secondColor, ease:Power3.easeOut});
  tl.staggerTo(split.words, 0.1, {color:"#00D1FF", scale:.9}, 0.1, "words").staggerTo(split.words, 1, {color:secondColor, scale:1}, 0.1, "words+=0.1",animEnd);
   function animEnd(){
     animatedChars++;
     console.log(animatedChars+'/'+split.words.lenght);
     if(animatedChars==split.words.length){
       console.log('F6 complete');
        animationComplete();
     }
   }
}
var f7 = function(params) {
  console.log("function > f7 --params:" + params);
  //undoStuff();
  //if(isAnimating(puppet)) 
  animationComplete();
  puppet = $('article>p:first');
  if(isAnimating(puppet)) return;
  setupAnim('words');
  var secondColor = 'rgba(22,22,22,1)';//'rgba(255,255,255,.8)'
  TweenMax.to('body', .5, {backgroundColor:"rgba(22,22,22,1)",color:secondColor, ease:Power3.easeOut});
  tl.staggerTo(split.words, 0.1, {color:"#FFFFFF", scale:.9}, 0.1, "words").staggerTo(split.words, 1, {color:secondColor, scale:1}, 0.1, "words+=0.1",animEnd);
   function animEnd(){
     animatedChars++;
     console.log(animatedChars+'/'+split.words.lenght);
     if(animatedChars==split.words.lenght){
       console.log('F7 complete');
        animationComplete();
     }
   }
}
var f8 = function(params) {
  console.log("function > f8 --params:" + params);
  animationComplete();
  puppet = $('.me4');
  if(isAnimating(puppet)) return;
  setupAnim('chars');
  /*undoStuff = () => {
    console.log('undoing body background color');
    TweenMax.to('body', .5, {backgroundColor:bodyBkgColor, color:bodyColor, ease:Power3.easeOut});
  };*/
  TweenMax.to('body', .5, {backgroundColor:"rgba(22,22,22,1)",color:"rgba(22,22,22,1)", ease:Power3.easeOut});
  var amplitude = 10;
  var time = 2;
  //randomizeColorset();
  var color2 = getRandomColorSeed();
  var randomColorSeed=getRandomColorSeed();
  randomizeColorset(randomColorSeed,20);
  split.chars.forEach(function(letter, i) {
    var delay = -i / split.chars.length * time;
    //var rndColor_1='#00FF04';
    //var rndColor_1="#"+((1<<24)*Math.random()|0).toString(16)
    //var rndColor_2='#00FF04';//'#FF0E00'
    
    //randomizeColorset('purple',6);
    
    var rndColor_1= randomColors[Math.floor(Math.random()*20)];
    var rndColor_2= randomColors[Math.floor(Math.random()*20)];//color2;//randomColors[1];
    //randomizeColorset('red',6);
    //var rndColor_2= randomColors[1];
    tl.fromTo(letter, time / 2, {y: -amplitude,color:rndColor_1}, {y: amplitude,color:rndColor_2,ease: Sine.easeInOut,repeat: -1,yoyo: true}, delay);
  });
}
var f9 = function(params) {
  console.log("function > f9 --params:" + params);
  animationComplete();
  puppet = $('.me4');
  if(isAnimating(puppet)) return;
  setupAnim('chars');
  /*undoStuff = () => {
    console.log('undoing body background color');
    TweenMax.to('body', .5, {backgroundColor:bodyBkgColor, color:bodyColor, ease:Power3.easeOut});
  };*/
  TweenMax.to('body', .5, {backgroundColor:"rgba(22,22,22,1)",color:"rgba(22,22,22,1)", ease:Power3.easeOut});
  for (var i = 0; i < split.chars.length; i++) {
    //$(split.chars[i]).css('color','#FFFFFF');
    tl.to(split.chars[i], .6, {y:106,color:'#FFFFFF', ease:Bounce.easeOut}, 1.4 + Math.random() * 0.6);
  }
}
var f10 = function(params) {
  console.log("function > f10 --params:" + params);
  animationComplete();
  puppet = $('article>p:first');
  if(isAnimating(puppet)) return;
  setupAnim('chars');
  /*undoStuff = () => {
    console.log('undoing body background color');
    TweenMax.to('body', .5, {backgroundColor:bodyBkgColor, color:bodyColor, ease:Power3.easeOut});
  };*/
  TweenMax.to('body', .5, {backgroundColor:"rgba(22,22,22,1)",color:"rgba(22,22,22,1)", ease:Power3.easeOut});
  TweenMax.to(split.chars, .5, {color:"#FFFFFF"});
  for (var i = 0; i < split.chars.length; i++) {
    //$(split.chars[i]).css('color','#FFFFFF');
    tl.to(split.chars[i], 3.6, {y:396,color:'#FFFFFF', ease:Bounce.easeOut}, 1.4 + Math.random() * 2);
    
    tl.to(split.chars[i], 1.6, {y:0,color:'#FFFFFF', ease:Bounce.easeIn}, 8.4 + Math.random() * 1);
  }
}
var animations = [f10, f9, f8, f7, f6, f5, f4, f3, f2, f1];
const Button = ReactBootstrap.Button;
const ButtonGroup = ReactBootstrap.ButtonGroup;
const ButtonToolbar = ReactBootstrap.ButtonToolbar;
class AnimationControls extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      items: animations
    };
  }
  getInitialState() {
    return {
      items: animations
    }
  }
  getAnimationsList() {
    this.setState({
      items: animations
    });
  }
  buttonClicked(evt) {
    var clickedButton = $(evt.target).text();
    console.log('buttonClicked: ' + clickedButton);
  }
  render() {
    console.log('render!');
    return (
      <div id="holaMundo">
        <ButtonToolbar>
          <ButtonGroup>
      {
        this.state.items.map(function(item) {
          return <Button key={item.name} onClick={ item.bind(this) }>{item.name}</Button>
        })
      }
          </ButtonGroup>
        </ButtonToolbar>
      </div>
    );
  }
  componentDidMount() {
    //console.log('componentDidMount!');
  }
  componentWillMount() {
    this.setState({
      items: animations
    })
  }
}
ReactDOM.render(
  <AnimationControls />,
  document.getElementById('controls')
);


var cars = ["Saab", "Volvo", "BMW"];
var colorSeeds=['purple','cyan','pink','Khaki','green','yellow','Turquoise','orange','violet','gold','Lime','Aquamarine'];
var randomColors=['#CC0000'];
var randomizeColorset = (_seed,_count) => {
  randomColors = Please.make_color({
    golden: false,
    full_random:true,
    base_color: _seed,
    colors_returned: _count,
    format: 'rgb-string'
  });
  //randomColors=Please.make_scheme({h:130,s:.7,v:.75},{scheme_type: 'analogous',format: 'rgb-string'});
  /*{hue: null,saturation: null,value: null,base_color: '',greyscale: false,grayscale: false,golden: true,full_random: false,colors_returned: 1,format: 'hex'}*/
};
var getRandomColorSeed = () => {
  return colorSeeds[Math.floor(Math.random()*12)];
}
/*var _colors = Please.make_color({
  golden: false,
    full_random:true,
    colors_returned: 1,
    format: 'rgb-string'
  });
  console.log('_colors[0]: '+_colors)
  return _colors;*/
//PLEASE JS

/*Please JS, Jordan Checkman 2014, Checkman.io, MIT Liscense, Have fun.*/
(function(e){"use strict";function t(){function i(e,t){return Math.floor(Math.random()*(t-e+1))+e}function s(e,t){return Math.random()*(t-e)+e}function o(e,t,n){if(e<t){e=t}else if(e>n){e=n}return e}function u(t,n){switch(t){case"hex":for(var r=0;r<n.length;r++){n[r]=e.HSV_to_HEX(n[r])}break;case"rgb":for(var r=0;r<n.length;r++){n[r]=e.HSV_to_RGB(n[r])}break;case"rgb-string":for(var r=0;r<n.length;r++){var i=e.HSV_to_RGB(n[r]);n[r]="rgb("+i.r+","+i.g+","+i.b+")"}break;case"hsv":break;default:console.log("Format not recognized.");break}return n}function a(e){var t={};for(var n in e){if(e.hasOwnProperty(n)){t[n]=e[n]}}return t}var e={};var t={aliceblue:"F0F8FF",antiquewhite:"FAEBD7",aqua:"00FFFF",aquamarine:"7FFFD4",azure:"F0FFFF",beige:"F5F5DC",bisque:"FFE4C4",black:"000000",blanchedalmond:"FFEBCD",blue:"0000FF",blueviolet:"8A2BE2",brown:"A52A2A",burlywood:"DEB887",cadetblue:"5F9EA0",chartreuse:"7FFF00",chocolate:"D2691E",coral:"FF7F50",cornflowerblue:"6495ED",cornsilk:"FFF8DC",crimson:"DC143C",cyan:"00FFFF",darkblue:"00008B",darkcyan:"008B8B",darkgoldenrod:"B8860B",darkgray:"A9A9A9",darkgrey:"A9A9A9",darkgreen:"006400",darkkhaki:"BDB76B",darkmagenta:"8B008B",darkolivegreen:"556B2F",darkorange:"FF8C00",darkorchid:"9932CC",darkred:"8B0000",darksalmon:"E9967A",darkseagreen:"8FBC8F",darkslateblue:"483D8B",darkslategray:"2F4F4F",darkslategrey:"2F4F4F",darkturquoise:"00CED1",darkviolet:"9400D3",deeppink:"FF1493",deepskyblue:"00BFFF",dimgray:"696969",dimgrey:"696969",dodgerblue:"1E90FF",firebrick:"B22222",floralwhite:"FFFAF0",forestgreen:"228B22",fuchsia:"FF00FF",gainsboro:"DCDCDC",ghostwhite:"F8F8FF",gold:"FFD700",goldenrod:"DAA520",gray:"808080",grey:"808080",green:"008000",greenyellow:"ADFF2F",honeydew:"F0FFF0",hotpink:"FF69B4",indianred:"CD5C5C",indigo:"4B0082",ivory:"FFFFF0",khaki:"F0E68C",lavender:"E6E6FA",lavenderblush:"FFF0F5",lawngreen:"7CFC00",lemonchiffon:"FFFACD",lightblue:"ADD8E6",lightcoral:"F08080",lightcyan:"E0FFFF",lightgoldenrodyellow:"FAFAD2",lightgray:"D3D3D3",lightgrey:"D3D3D3",lightgreen:"90EE90",lightpink:"FFB6C1",lightsalmon:"FFA07A",lightseagreen:"20B2AA",lightskyblue:"87CEFA",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"B0C4DE",lightyellow:"FFFFE0",lime:"00FF00",limegreen:"32CD32",linen:"FAF0E6",magenta:"FF00FF",maroon:"800000",mediumaquamarine:"66CDAA",mediumblue:"0000CD",mediumorchid:"BA55D3",mediumpurple:"9370D8",mediumseagreen:"3CB371",mediumslateblue:"7B68EE",mediumspringgreen:"00FA9A",mediumturquoise:"48D1CC",mediumvioletred:"C71585",midnightblue:"191970",mintcream:"F5FFFA",mistyrose:"FFE4E1",moccasin:"FFE4B5",navajowhite:"FFDEAD",navy:"000080",oldlace:"FDF5E6",olive:"808000",olivedrab:"6B8E23",orange:"FFA500",orangered:"FF4500",orchid:"DA70D6",palegoldenrod:"EEE8AA",palegreen:"98FB98",paleturquoise:"AFEEEE",palevioletred:"D87093",papayawhip:"FFEFD5",peachpuff:"FFDAB9",peru:"CD853F",pink:"FFC0CB",plum:"DDA0DD",powderblue:"B0E0E6",purple:"800080",rebeccapurple:"663399",red:"FF0000",rosybrown:"BC8F8F",royalblue:"4169E1",saddlebrown:"8B4513",salmon:"FA8072",sandybrown:"F4A460",seagreen:"2E8B57",seashell:"FFF5EE",sienna:"A0522D",silver:"C0C0C0",skyblue:"87CEEB",slateblue:"6A5ACD",slategray:"708090",slategrey:"708090",snow:"FFFAFA",springgreen:"00FF7F",steelblue:"4682B4",tan:"D2B48C",teal:"008080",thistle:"D8BFD8",tomato:"FF6347",turquoise:"40E0D0",violet:"EE82EE",wheat:"F5DEB3",white:"FFFFFF",whitesmoke:"F5F5F5",yellow:"FFFF00",yellowgreen:"9ACD32"};var n={hue:null,saturation:null,value:null,base_color:"",greyscale:false,grayscale:false,golden:true,full_random:false,colors_returned:1,format:"hex"};var r={scheme_type:"analogous",format:"hex"};e.NAME_to_HEX=function(e){if(e in t){return t[e]}else{console.log("Color name not recognized.")}};e.NAME_to_HSV=function(t){return e.HEX_to_RGB(e.NAME_to_HEX(t))};e.NAME_to_HSV=function(t){return e.HEX_to_HSV(e.NAME_to_HEX(t))};e.HEX_to_RGB=function(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,n,r){return t+t+n+n+r+r});var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null};e.RGB_to_HEX=function(e){return"#"+((1<<24)+(e.r<<16)+(e.g<<8)+e.b).toString(16).slice(1)};e.HSV_to_RGB=function(e){var t,n,r;var i=e.h/360;var s=e.s;var o=e.v;var u=Math.floor(i*6);var a=i*6-u;var f=o*(1-s);var l=o*(1-a*s);var c=o*(1-(1-a)*s);switch(u%6){case 0:t=o,n=c,r=f;break;case 1:t=l,n=o,r=f;break;case 2:t=f,n=o,r=c;break;case 3:t=f,n=l,r=o;break;case 4:t=c,n=f,r=o;break;case 5:t=o,n=f,r=l;break}return{r:Math.floor(t*255),g:Math.floor(n*255),b:Math.floor(r*255)}};e.RGB_to_HSV=function(e){var t,n,r;var i=0;var s=0;var o=0;t=e.r/255;n=e.g/255;r=e.b/255;var u=Math.min(t,Math.min(n,r));var a=Math.max(t,Math.max(n,r));if(u==a){o=u;return{h:0,s:0,v:o}}var f=t==u?n-r:r==u?t-n:r-t;var l=t==u?3:r==u?1:5;i=60*(l-f/(a-u));s=(a-u)/a;o=a;return{h:i,s:s,v:o}};e.HSV_to_HEX=function(t){return e.RGB_to_HEX(e.HSV_to_RGB(t))};e.HEX_to_HSV=function(t){return e.RGB_to_HSV(e.HEX_to_RGB(t))};e.make_scheme=function(e,t){function f(e){return{h:e.h,s:e.s,v:e.v}}var n=a(r);if(t!=null){for(var i in t){if(t.hasOwnProperty(i)){n[i]=t[i]}}}var s=[e];switch(n.scheme_type.toLowerCase()){case"monochromatic":case"mono":for(var l=1;l<=2;l++){var c=f(e);var h=c.s+.1*l;h=o(h,0,1);var p=c.v+.1*l;p=o(p,0,1);c.s=h;c.v=p;s.push(c)}for(var l=1;l<2;l++){var c=f(e);var h=c.s-.1*l;h=o(h,0,1);var p=c.v-.1*l;p=o(p,0,1);c.s=h;c.v=p;s.push(c)}break;case"complementary":case"complement":var c=f(e);c.h+=180;if(c.h>360){c.h-=360}s.push(c);break;case"split-complementary":case"split-complement":case"split":var c=f(e);c.h+=165;if(c.h>360){c.h-=360}s.push(c);var c=f(e);c.h-=165;if(c.h<0){c.h+=360}s.push(c);break;case"double-complementary":case"double-complement":case"double":var c=f(e);c.h+=180;if(c.h>360){c.h-=360}s.push(c);var c=f(e);c.h+=30;if(c.h>360){c.h-=360}var d=f(c);s.push(c);d.h+=180;if(d.h>360){d.h-=360}s.push(d);break;case"analogous":case"ana":for(var l=1;l<=5;l++){var c=f(e);c.h+=20*l;if(c.h>360){c.h-=360}s.push(c)}break;case"triadic":case"triad":case"tri":for(var l=1;l<3;l++){var c=f(e);c.h+=120*l;if(c.h>360){c.h-=360}s.push(c)}break;default:console.log("Color scheme not recognized.");break}u(n.format.toLowerCase(),s);return s};e.make_color=function(r){var a=[];var f={};for(var l in n){if(n.hasOwnProperty(l)){f[l]=n[l]}}if(r!=null){for(var l in r){if(r.hasOwnProperty(l)){f[l]=r[l]}}}var c;if(f.base_color.length>0){c=t[f.base_color.toLowerCase()];c=e.HEX_to_HSV(c)}for(var h=0;h<f.colors_returned;h++){var p=i(0,360);var d,v,m;if(c!=null){d=i(c.h-5,c.h+5);v=s(.4,.85);m=s(.4,.85);a.push({h:d,s:v,v:m})}else{if(f.greyscale==true||f.grayscale==true){d=0}else if(f.golden==true){d=p+p/.618033988749895}else if(f.hue==null||f.full_random==true){d=p}else{d=o(f.hue,0,360)}if(f.greyscale==true||f.grayscale==true){v=0}else if(f.full_random==true){v=s(0,1)}else if(f.saturation==null){v=.4}else{v=o(f.saturation,0,1)}if(f.full_random==true){m=s(0,1)}else if(f.greyscale==true||f.grayscale==true){m=s(.15,.75)}else if(f.value==null){m=.75}else{m=o(f.value,0,1)}a.push({h:d,s:v,v:m})}}u(f.format.toLowerCase(),a);if(a.length===1){return a[0]}else{return a}};return e}if(typeof Please=="undefined"){e.Please=t()}})(window)
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console