123

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.

            
              <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="http://nkmrkisk.com/demo/2015/12/js/geometryangle.min.js"></script>


            
          
!
            
              html,body{
  width: 100%;
  height: 100%;
}
            
          
!
            
              //http://geometryangle.tritoncode.com/
$(function () {
  $('body').Geometryangle({
    mesh: {
     'width':1.2, // 全体の横幅
      'height':1.2, // 全体の縦幅
      'depth':0, // 要素の奥行き
      'columns':50, // 面の列数
      'rows':20, // 面の行数
      'xRange':0, // 頂点のx軸の可動域
      'yRange':0, // 頂点のy軸の可動域
      'zRange':0, // 頂点のz軸の可動域
      'ambient':'rgba(255,0,0, 1)', // 周囲の色(lightでの設定がありややこしい
      'diffuse':'rgba(255,255,255, 1)', // 放散される色(lightでの設定がありややこしい
      'background':'rgba(255,255,255,1)', // キャンパスの背景 設定によっては線の色に影響する
      'speed':0.0002, // 大きいほど早い
      'fluctuationSpeed':0.5,
      'fluctuationIntensity':0,
      'onRender':function(){}
  }, 
    lights: [{
      'count':0.2, //0でまっくら。0に近いほど明るくなる模様
      'xyScalar':1, //scalar = 数量 何の数量か不明
      'zOffset':30, // キャンバスとのz軸の距離 数値が大きい方が広い箇所に影響する
      'ambient':'rgba(255,255,255, 1)',  // 周囲の色(meshでの設定がありややこしい
      'diffuse':'rgba(255,255,100, 1)', // 放散される色(meshでの設定がありややこしい
      'position': [100,100], // undefinedにするとマウスについてくる、場所指定は配列で[x, y]
      'speed':0.2, // なにのスピードか謎
      'gravity':1000, // マウス位置への吸引力
      'dampening':0.96, // 光源の動きを抑制する力、1以上になると反発してしまうのか戻ってこない
      'autopilot':true // 指定箇所でとどまるように動く true , false
    }], 
    line: {
      'draw':false, //線の表示非表示設定
      'fill':"rgba(0,0,200,1)", // 線の色
      'thickness':3, // 線の太さ
      'fluctuationSpeed':0.2, //点滅のスピード
      'fluctuationIntensity':0.5 // 点滅の滅時の透過度     
    }, 
    vertex: {
      'draw':false, // 表示非表示設定
      'radius':1, //頂点の大きさ
      'fill':'rgba(0,0,0,1)',// 頂点の色
      'fluctuationIntensity':10, // 頂点を点滅させる
      'fluctuationSpeed':0.5, // 頂点の点滅のInterval
      'strokeWidth':1,// 頂点の枠線の太さ
      'strokeColor':'rgba(0,0,255,1)' // 頂点の枠線
    }});
});
            
          
!
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.

Console