This file contains hidden or 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
| #define flaot float | |
| #define unsinged unsigned | |
| #define cosnt const |
This file contains hidden or 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
| @interface NSString (AnotherClassExtension) | |
| - (NSURL *)toURL; | |
| - (NSURL *)toFileURL; | |
| - (NSString *)toDocumentDirectoryPath; | |
| - (NSURL *)toDocumentDirectoryFileURL; | |
| - (NSString *)toCachePath; | |
| - (NSURL *)toCacheFileURL; | |
| - (UIImage* *)toImage; |
This file contains hidden or 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
| // | |
| // main.swift | |
| // SwiftLine | |
| // | |
| // Created by ISHII 2bit on 2014/06/03. | |
| // Copyright (c) 2014 buffer Renaiss. All rights reserved. | |
| // | |
| import Foundation |
This file contains hidden or 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
| #include "ofApp.h" | |
| //-------------------------------------------------------------- | |
| void ofApp::setup(){ | |
| for(int i = 0; i < 20; i++) { | |
| ofRectangle rect; | |
| rect.width = ofRandomWidth() * 0.5f; | |
| rect.height = ofRandomHeight() * 0.5f; | |
| rect.x = ofRandom(ofGetWidth() - rect.width); | |
| rect.y = ofRandom(ofGetHeight() - rect.height); |
This file contains hidden or 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 N = 7; | |
| final int R = 300; | |
| final float scale = 0.2; | |
| final PVector[] basicVertecies = new PVector[N]; | |
| final PVector[] innerVertecies = new PVector[N]; | |
| final PVector[] outerVertecies = new PVector[2 * N]; | |
| final PVector[] assistVertecies = new PVector[N]; | |
| color[] colors; |
This file contains hidden or 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
| var f = function(m) { return (Math.random() * m) | 0; }, | |
| vs = [], | |
| n = 0; | |
| for(var y = 0; y < 2000; y += 5) { | |
| for(var _ = 0; _ < 2; _++) { | |
| var t = Math.random() * Math.PI * 2, | |
| r = f(15), | |
| x = 40 + (r * Math.cos(t)) | 0, | |
| z = 30 + (r * Math.sin(t)) | 0, | |
| c = (f(64) + 192) * 256 + f(256); |
This file contains hidden or 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 String fileName = "penrose.png"; | |
| final String outJsonName = "out.json"; | |
| final int voxelsWidth = 80; | |
| final int voxelsHeight = 60; | |
| class Voxel { | |
| public Voxel(int x_, int y_) { | |
| x = x_; | |
| y = y_; |
This file contains hidden or 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
| // | |
| // author: | |
| // TOMOTO Yusuke https://github.com/yusuketomoto | |
| // modify: | |
| // ISHII 2bit https://github.com/2bbb | |
| // | |
| // Dependencies: | |
| // ofxCV https://github.com/kylemcdonald/ofxCv | |
| // ofxTldTracker https://github.com/yusuketomoto/ofxTldTracker | |
| // ofxJpegGlitch https://github.com/2bbb/ofxJpegGlitch |
This file contains hidden or 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
| // | |
| // TBTSimpleCamera.h | |
| // | |
| // Created by ISHII 2bit on 2014/10/08. | |
| // Copyright (c) 2014年 buffer Renaiss. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| typedef void(^TBTDidStartRecordingCallback)(NSURL *fileURL); |
This file contains hidden or 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
| autocompile = true; | |
| outlets = 2; | |
| var Controller = { | |
| Buttons: { | |
| Push: { | |
| x: 19, a: 20, b: 21, y: 22, | |
| top: 11, right: 12, bottom: 13, left: 14, | |
| l1: 17, r1: 18, l2: 15, r2: 16, | |
| select: 7, start: 10, ps: 23 |