I used sin and cos when I changed the position of particles.
A Pen by naoyashiga on CodePen.
I used sin and cos when I changed the position of particles.
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); |
if the Particles is in the circle,the particle get slowly.
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.
using Paper.js
A Pen by naoyashiga on CodePen.
using paper.js blendemode "xor"
A Pen by naoyashiga on CodePen.
// | |
// ViewController.swift | |
// DrawParticle | |
// | |
// Created by naoyashiga on 2014/06/03. | |
// Copyright (c) 2014年 naoyashiga. All rights reserved. | |
// | |
import UIKit |
# -*- encoding: UTF-8 -*- | |
require 'nokogiri' | |
require 'open-uri' | |
API_URL = "http://thecatapi.com/api/images/get?format=xml" | |
doc = Nokogiri::XML(open(API_URL).read) | |
url_nodes = doc.xpath("//url").text |
(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; |
import Foundation | |
enum timingFunction{ | |
case Linear,EaseIn,EaseOut,EaseInOut, | |
Spring, | |
EaseInSine,EaseOutSine,EaseInOutSine, | |
EaseInQuad,EaseOutQuad,EaseInOutQuad, | |
EaseInCubic,EaseOutCubic,EaseInOutCubic, | |
EaseInQuart,EaseOutQuart,EaseInOutQuart, | |
EaseInQuint,EaseOutQuint,EaseInOutQuint, |