Skip to content

Instantly share code, notes, and snippets.

View merttoka's full-sized avatar

Mert Toka merttoka

  • Santa Barbara, CA
View GitHub Profile
@merttoka
merttoka / SecondSketch.pde
Last active August 10, 2021 20:38
Processing second sketch vertex error
class SecondSketch extends PApplet {
// APPLET --------------------------------
SecondSketch() {
super();
}
public void run(int x, int y) {
String[] processingArgs = { "--location=" + x + "," + y, "Second Sketch" };
PApplet.runSketch(processingArgs, this);
@merttoka
merttoka / index.html
Last active November 7, 2016 18:14
Personal Experimentation of a Mandala Creator
<!--
Mouse Events
LEFT CLICK: draws in white
RIGHT CLICK: draws in color
MIDDLE CLICK: draws in black
Touch Event:
Drag: draws in white
-->
@merttoka
merttoka / index.html
Created November 7, 2016 17:56
Personal Experimentation of a Mandala Creator
<html>
<head>
<meta charset="UTF-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.4/p5.js"></script>
<script language="javascript" type="text/javascript">
var elements = 64;
function setup(){
//fullScreen();
@merttoka
merttoka / index.html
Created October 26, 2016 19:55
MAT200C HW4
<html>
<script src = "https://rawgit.com/wolftype/200c/gh-pages/js/gfx_v02.js"></script>
<script type="text/javascript">
var app = new GFX.App();
var model;
/// On Initialization of the WebGL Application (this happens once)
@merttoka
merttoka / index.html
Created October 19, 2016 06:49
MAT200C HW3
<html>
<script src = "https://rawgit.com/wolftype/200c/gh-pages/js/gfx.js"></script>
<script type="text/javascript">
var app = new GFX.App();
var model;
/// On Initialization of the WebGL Application (this happens once)
@merttoka
merttoka / index.html
Last active October 12, 2016 20:11
MAT200C HW2
<html>
<script type="text/javascript" src="https://rawgit.com/patriciogonzalezvivo/glslCanvas/master/build/GlslCanvas.js"></script>
<body>
<canvas class="glslCanvas" data-fragment="
#ifdef GL_ES
precision highp float;
#endif
uniform vec2 u_resolution;
uniform vec2 u_mouse;
@merttoka
merttoka / index.html
Last active October 12, 2016 18:03
MAT200C HW1
<html>
<script type="text/javascript" src="https://rawgit.com/patriciogonzalezvivo/glslCanvas/master/build/GlslCanvas.js"></script>
<body>
<canvas class="glslCanvas" data-fragment="
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 u_resolution;
uniform vec2 u_mouse;