Cubes move in formaiton,Mix,Line,Circle,Cube and Spiral.
using by Three.js and Tween.js.
A Pen by naoyashiga on CodePen.
Cubes move in formaiton,Mix,Line,Circle,Cube and Spiral.
using by Three.js and Tween.js.
A Pen by naoyashiga on CodePen.
if the Particles is in the circle,the particle get slowly.
A Pen by naoyashiga on CodePen.
var cube_geo = new THREE.CubeGeometry( | |
CUBE_WIDTH, | |
CUBE_HEIGHT, | |
CUBE_DEPTH, | |
CUBE_WIDTH_SEGMENTS, | |
CUBE_HEIGHT_SEGMENTS, | |
CUBE_DEPTH_SEGMENTS | |
); | |
//空のマテリアル | |
var cube_material = new THREE.MeshFaceMaterial(materials); |
I used sin and cos when I changed the position of particles.
A Pen by naoyashiga on CodePen.
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass') | |
notify = require("gulp-notify") | |
bower = require('gulp-bower'), | |
jade = require('gulp-jade'), | |
webserver = require('gulp-webserver'); | |
var config = { | |
sassPath: './resources/sass', | |
jadePath: './resources/jade', |
class BaseParticleWithVector implements BaseParticleWithVectorInterface { | |
PVector location; | |
PVector velocity; | |
float scalarVelocity; | |
float r; | |
BaseParticleWithVector() { | |
location = new PVector(random(width), random(height)); | |
velocity = new PVector(0, 0); |
let array = ["カレー","ラーメン","ハンバーグ"] | |
array.enumerate().forEach { (index, element) in | |
print("index:\(index) element:\(element)") | |
} | |
//省略記法 | |
array.enumerate().forEach { | |
print("index:\($0.0) element:\($0.1)") | |
} |
class BaseParticleWithVector implements BaseParticleWithVectorInterface { | |
PVector location; | |
PVector velocity; | |
float scalarVelocity; | |
float r; | |
BaseParticleWithVector() { | |
location = new PVector(random(width), random(height)); | |
velocity = new PVector(0, 0); |
override func viewWillDisappear(animated: Bool) { | |
navigationController?.setNavigationBarHidden(true, animated: true) | |
} | |
override func viewWillAppear(animated: Bool) { | |
navigationController?.setNavigationBarHidden(false, animated: true) | |
} |
(function(){ | |
"use strict"; | |
var PLUGIN_ID = require("./package.json").name, | |
MENU_ID = "tutorial", | |
MENU_LABEL = "$$$/JavaScripts/Generator/Tutorial/Menu=Tutorial"; | |
var _generator = null, | |
_currentDocumentId = null, | |
_config = null; |