Moving nodes, connected with lines of weight based on distance separation.
A Pen by Nicholas C. Raftis III on CodePen.
| // Final for now... | |
| // iPhone 3Gs: 5.9ms | |
| #ifdef VERTEX | |
| attribute vec4 a_position; | |
| attribute vec2 a_uv; | |
| attribute vec3 a_normal; | |
| attribute vec4 a_tangent; | |
| uniform mat4 u_mvp; |
| # To use this script, you must first change a few things. | |
| # First, you'll want to change the filepath for the sound file. | |
| # This is on line 76. Second, you might want to change the materials or the settings. | |
| # To render this, you'll need to set the background color, enable Only Render on the display window, and render it with OpenGL (it's much faster and most optimal for 2D renders.) | |
| # LICENSE = wtfpl | |
| # VERSION = 0.3 | |
| import bpy | |
| def makeMaterial(name, diffuse, alpha): |
| --# Main | |
| function setup() | |
| displayMode(FULLSCREEN) | |
| Grid.init(64,32) | |
| touches = 0 -- Number of touches | |
| vx = 0; vy = 0 -- View position | |
| -- Create some tiles using the class | |
| goal = Tile(-10, 0, 'yellow') | |
| start = Tile(0, 0, 'green') |
| -- StarfFields by Bri_G based on HTML by Seb Lee-Delisle | |
| -- Rotating field around a central star matrtix | |
| --[[ if require ~= nil then | |
| require("loveCodea") | |
| end --]] | |
| function setup() | |
| -- | |
| fov = 250 |
| <div id="container"></div> | |
| <img src="https://booth.n-e-o.vision/wp-content/uploads/2017/10/NEO_BOOTH_BusinessCard_FrontWEB_noborder.png" /> |
Moving nodes, connected with lines of weight based on distance separation.
A Pen by Nicholas C. Raftis III on CodePen.
Moving nodes, connected with lines of weight based on distance separation.
A Pen by Nicholas C. Raftis III on CodePen.
| <body></body> |
| <svg id="svg"> | |
| </svg> |
A Pen by Nicholas C. Raftis III on CodePen.