Skip to content

Instantly share code, notes, and snippets.

@athaeryn
athaeryn / Bunny.js
Created October 30, 2018 04:30 — forked from bberak/Bunny.js
How to use regl in React or React Native
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 June 2, 2016 14:32 — forked from nhunzaker/Makefile
Light Level
all:
gcc light.m -std=c99 -framework Foundation -framework IOKit -o light
clean:
rm -f light