Skip to content

Instantly share code, notes, and snippets.

View tboydar's full-sized avatar
🎯
Focusing

Dar tboydar

🎯
Focusing
View GitHub Profile
@tboydar
tboydar / gist:5962773
Created July 10, 2013 01:24
unity ska
using UnityEngine;
using System.Collections;
using Iisu;
using IisuUnity;
using System;
using System.Collections.Generic;
using SKA;
using SKA.Geometry;
import java.awt.image.BufferedImage;
import java.awt.*;
PImage screenShot;
void setup() {
size(800, 600);
screenShot = getScreen();
//show photos
PImage photo_a;
PImage photo_b;
PImage photo_c;
void setup() //設定
{
size(300,300);
photo_a = loadImage("a.jpg");
photo_b = loadImage("b.jpg");
photo_c = loadImage("c.jpg");
@tboydar
tboydar / gist:6820500
Last active December 24, 2015 15:29
processing in 實踐
//show photos
PImage photo_a;
PImage photo_b;
PImage photo_c;
int mode = 0;
void setup() //設定
{
size(300, 300);
photo_a = loadImage("a.jpg");
@tboydar
tboydar / gist:6820664
Created October 4, 2013 03:41
processing in 實踐
//show photos
PImage photo_a;
PImage photo_b;
PImage photo_c;
int mode = 0;
void setup() //設定
{
size(300, 300);
photo_a = loadImage("a.jpg");
@tboydar
tboydar / gist:6928807
Created October 11, 2013 02:40
processing 畫圓
void setup() {
size(300, 300);
background(0);
}
void draw()
{
ellipse(200, 200, 50, 50);
}
@tboydar
tboydar / gist:6928873
Created October 11, 2013 02:51
亂數畫圓
int xx = 200;
void setup() {
size(300, 300); //畫面尺寸
background(255);//背景白色
}
void draw()
{
background(255);
@tboydar
tboydar / gist:6928903
Created October 11, 2013 02:56
//亂數畫圓 xx, 畫面上到下yy
//亂數畫圓
int xx = 200; //設定xx 給人使用
int yy = 200; //設定yy 給人使用
//設定一次功能
void setup() {
size(300, 300); //畫面尺寸
background(255);//背景白色
}
@tboydar
tboydar / gist:6928944
Created October 11, 2013 03:00
//亂數畫圓 xx, 畫面上到下yy 顯示設定frameRate
//亂數畫圓 xx, 畫面上到下yy
int xx = 200; //設定xx 給人使用
int yy = 200; //設定yy 給人使用
//設定一次功能
void setup() {
size(300, 300); //畫面尺寸
background(255);//背景白色
frameRate(3000); //設定畫面更新速度
}
@tboydar
tboydar / gist:6928995
Created October 11, 2013 03:08
//由左到右畫圓 xx, 畫面上到下yy 顯示設定frameRate
//由左到右畫圓 xx, 畫面上到下yy 顯示設定frameRate
int xx = 200; //設定xx 給人使用
int yy = 200; //設定yy 給人使用
//設定一次功能
void setup() {
size(300, 300); //畫面尺寸
background(255);//背景白色
frameRate(100); //設定畫面更新速度
}