Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

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

              
            
!

CSS

              
                html,body{
  width: 100%;
  height: 100%;
}
              
            
!

JS

              
                //http://geometryangle.tritoncode.com/
$(function () {
  $('body').Geometryangle({
    mesh: {
     'width':1.2, // canvas全体の横幅
      'height':1.2, // canvas全体の縦幅
      'depth':0, // ポリゴンの奥行き
      'columns':10, // ポリゴンの列数
      'rows':8, // ポリゴンの行数
      'xRange':0.01, // 頂点のx軸の可動域
      'yRange':0.01, // 頂点のy軸の可動域
      'zRange':0, // 頂点のz軸の可動域
      'ambient':'rgba(255,255,255, 1)', // 周囲の色(lightでの設定と干渉します
      'diffuse':'rgba(255,255,255, 1)', // 放散される色(lightでの設定と干渉します
      'background':'rgba(255,255,255,1)', // キャンパスの背景色
      'speed':0.0002, // x,y,z軸のパスの稼働速度です。大きいほど早くなります。
      'fluctuationSpeed':0.5,
      'fluctuationIntensity':0,
      'onRender':function(){}
  }, 
    lights: [{
      'count':1, //0 = none 。0に近いほど明るくなります
      'xyScalar':1, //scalar = 数量 数量が何にあたるのかは不明です。
      'zOffset':100, // キャンバスとのz軸の距離 数値が大きい方が広い箇所に影響する
      'ambient':'rgba(255,255,255, 1)',  // 周囲の色(meshでの設定と干渉します
      'diffuse':'rgba(255,255,255, 1)', // 放散される色(meshでの設定と干渉します
      'position': [500, 400], // undefinedにするとマウスに追従します、場所指定は配列で[x, y]
      'speed':0.1,
      'gravity':1200, // マウス位置への吸引力
      'dampening':0.95, // 光源の動きを抑制する力、1以上になると反発してしまうのか戻ってこない
      'autopilot':false // 指定箇所でとどまるように動く true , false
    }], 
    line: {
      'draw':true, //線の表示非表示設定
      '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

Console