This file contains 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 a(){ | |
let c = {b}; // press enter here at the end of the line | |
} |
This file contains 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 a(){ | |
let c = {b}; // press enter at the end of this line here | |
} |
This file contains 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
let regl = require('regl')(); | |
let quad = require('glsl-quad'); | |
let frag = ` | |
precision highp float; | |
uniform float kernel[9]; |
This file contains 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
let regl = require('regl')(); | |
let mat4 = require('gl-mat4'); | |
var build = require('implicit-mesh') | |
function f(x,y,z) { | |
return Math.sqrt(x*x + y*y + z*z); | |
} |
This file contains 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
document.body.style.margin = 0; | |
document.body.style.padding = 0; | |
const width = window.innerWidth; | |
const height = window.innerHeight; | |
const canvas = document.body.appendChild(document.createElement('canvas')) | |
const fit = require('canvas-fit'); | |
const bezier = require('bezier'); |
This file contains 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
document.body.style.margin = 0; | |
document.body.style.padding = 0; | |
const width = window.innerWidth; | |
const height = window.innerHeight; | |
const canvas = document.body.appendChild(document.createElement('canvas')) | |
const fit = require('canvas-fit'); | |
const bezier = require('bezier'); |
This file contains 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
/* | |
<p>This example shows how you can use mipmaps in regl.</p> | |
*/ | |
const regl = require('regl')({ | |
extensions: ['EXT_texture_filter_anisotropic'] | |
}) | |
const drawCheckerboard = regl({ |
This file contains 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
/* | |
<p>This example shows how you can use mipmaps in regl.</p> | |
*/ | |
const regl = require('regl')({ | |
extensions: ['EXT_texture_filter_anisotropic'] | |
}) | |
const drawCheckerboard = regl({ |
This file contains 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
/* | |
<p>This example shows how you can use mipmaps in regl.</p> | |
*/ | |
const regl = require('regl')({ | |
extensions: ['EXT_texture_filter_anisotropic'] | |
}) | |
const drawCheckerboard = regl({ |
This file contains 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
/* | |
<p>This example shows how you can use mipmaps in regl.</p> | |
*/ | |
const regl = require('regl')({ | |
extensions: ['EXT_texture_filter_anisotropic'] | |
}) | |
const drawCheckerboard = regl({ |