Skip to content

Instantly share code, notes, and snippets.

@pbeshai
pbeshai / Controls.js
Created June 8, 2020 15:18
Example controls for react-three-fiber with animating camera
import TWEEN from '@tweenjs/tween.js';
import React, { useEffect, useRef } from 'react';
import { extend, useFrame, useThree } from 'react-three-fiber';
import * as THREE from 'three';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
// extend THREE to include OrbitControls
extend({ OrbitControls });
@pbeshai
pbeshai / .block
Last active January 31, 2019 14:33
Packed Pebbles
license: mit
height: 500
border: no
@pbeshai
pbeshai / .block
Last active August 4, 2021 11:37
Lasso with d3 v4 and Canvas
license: mit
height: 500
border: no
@pbeshai
pbeshai / .block
Last active August 11, 2019 10:57
Particles Flowing with WebGL and regl - II
license: mit
height: 720
border: no
@pbeshai
pbeshai / .block
Last active February 11, 2023 11:53
Particles Flowing with WebGL and regl - I
license: mit
height: 720
border: no
@pbeshai
pbeshai / .block
Last active December 17, 2019 13:56
Animate 100,000 points with regl - III
license: mit
height: 720
border: no
@pbeshai
pbeshai / .block
Last active January 27, 2019 03:38
Animate 100,000 points with regl - I
license: mit
height: 720
border: no
@pbeshai
pbeshai / .block
Last active March 8, 2024 17:26
Draw 100,000 points with regl
license: mit
height: 720
border: no
@pbeshai
pbeshai / .block
Last active November 10, 2023 09:46
Mandala Generator with D3 and SVG use
license: mit
height: 720
border: no
@pbeshai
pbeshai / .block
Last active January 27, 2019 03:40
Animate 100,000 points with regl - II
license: mit
height: 720
border: no