Skip to content

Instantly share code, notes, and snippets.

@athaeryn
athaeryn / Bunny.js
Created Oct 30, 2018 — forked from bberak/Bunny.js
How to use regl in React or React Native
View Bunny.js
import React, { PureComponent } from "react";
import { StyleSheet } from "react-native";
import ReglView from "./ReglView";
import mat4 from "gl-mat4";
import bunny from "bunny";
export default class Bunny extends PureComponent {
drawCommand = regl => {
return regl({
vert: `
@athaeryn
athaeryn / Makefile
Last active Jun 2, 2016 — forked from nhunzaker/Makefile
Light Level
View Makefile
all:
gcc light.m -std=c99 -framework Foundation -framework IOKit -o light
clean:
rm -f light