This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Analog clock OOP | |
//original code http://yoppa.org/proga10/1419.html | |
//構造化プログラミングしてないと拡張するときもぜんぶ読まないといけないので大変だろうと | |
int MARGIN = 20; | |
Clock myClock = new Clock(); | |
void setup() { | |
size(300,300); | |
stroke(255); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name [Gunosy]Add Direct Link | |
// @namespace http://gunosy.com/ | |
// @include http://gunosy.com/* | |
// @version 0.9.2 | |
// @description 学習用のリダイレクトリンクを踏まないで開きたい方へ | |
// ==/UserScript== | |
(function (d, func) { | |
var h = d.getElementsByTagName('head')[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Date; | |
int numberOfNodes = 200; | |
Node[] nodes = new Node[numberOfNodes]; | |
Edge[][] calcTable = new Edge[numberOfNodes][numberOfNodes]; | |
class Edge{ | |
float distX; | |
float distY; | |
float distance; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int numberOfNodes = 200; | |
Node[] nodes = new Node[numberOfNodes]; | |
int pressedCount = 0; | |
float pressedX; | |
float pressedY; | |
//var calcTable; | |
float lineAlpha = 0; | |
void setup() { | |
size(displayWidth, displayHeight); //Processing 2.x以降はdisplayWidth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final int RATIO = 10; | |
float x, y; | |
void setup() { | |
clear();//more than 2.0b8 (If less than 2.0b7 background(0, 0, 0, 0)) | |
size(200, 200); | |
stroke(255); | |
frameRate(1000); | |
} | |
void draw() { |