using paper.js blendemode "xor"
A Pen by naoyashiga on CodePen.
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) | |
} |
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, |
(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; |
# -*- 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 |
// | |
// ViewController.swift | |
// DrawParticle | |
// | |
// Created by naoyashiga on 2014/06/03. | |
// Copyright (c) 2014年 naoyashiga. All rights reserved. | |
// | |
import UIKit |
using paper.js blendemode "xor"
A Pen by naoyashiga on CodePen.
using Paper.js
A Pen by naoyashiga on CodePen.