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
// spectral_zucconi6 by Alan Zucconi rewritten from GLSL to JS by Kazik Pogoda | |
// GLSL: https://www.shadertoy.com/view/ls2Bz1 | |
const ONE_IN_3D = [1, 1, 1]; | |
const c1 = [3.54585104, 2.93225262, 2.41593945]; | |
const x1 = [0.69549072, 0.49228336, 0.27699880]; | |
const y1 = [0.02312639, 0.15225084, 0.52607955]; | |
const c2 = [3.90307140, 3.21182957, 3.96587128]; | |
const x2 = [0.11748627, 0.86755042, 0.66077860]; | |
const y2 = [0.84897130, 0.88445281, 0.73949448]; |
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
(function (root, factory) { | |
if (typeof define === 'function' && define.amd) | |
define(['exports'], factory); | |
else if (typeof exports === 'object') | |
factory(module.exports); | |
else | |
root['openrndr-kotlinjs-test'] = factory(typeof this['openrndr-kotlinjs-test'] === 'undefined' ? {} : this['openrndr-kotlinjs-test']); | |
}(this, function (_) { | |
'use strict'; | |
NodeJsOutput_0.prototype = Object.create(BaseOutput.prototype); |
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
package com.xemantic.test.howfast; | |
import java.util.Arrays; | |
public class Java2TimesFasterThanC { | |
private static final int MAX_PAYLOAD_SIZE = 10000; | |
private static final int INITIAL_NODE_COUNT = 1000; | |
private static final long MUTATION_COUNT = 10000000L; | |
private static final int MAX_MUTATION_SIZE = 10; |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
const int MAX_PAYLOAD_SIZE = 10000; | |
const int INITIAL_NODE_COUNT = 1000; | |
const long MUTATION_COUNT = 10000000L; | |
const int MAX_MUTATION_SIZE = 10; | |
typedef struct Node Node; |
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
// see full article: https://medium.com/@kazikpogoda/the-limits-of-processing-and-how-i-transcend-them-with-openrndr-e6a63c5924fd | |
import org.openkinect.freenect.DepthFormat | |
import org.openkinect.freenect.Freenect | |
import org.openrndr.* | |
import org.openrndr.draw.* | |
import java.nio.ByteBuffer | |
import java.util.* | |
import java.util.concurrent.ConcurrentLinkedQueue | |
const val KINECT_WIDTH : Int = 640 |