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
{ | |
"view": { | |
"name": "About", | |
"route": "/about", | |
"page-title": "About" | |
}, | |
"content": [{ | |
"title": "About", | |
"component": "Section", | |
"content": [{ |
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
uniform vec2 u_resolution; | |
uniform float u_time; | |
const float PI = 3.1415926535897932384626433832795; | |
vec2 poly (in float sides, in float radius, in float cx, in float cy, in float rotation) { | |
float angle = 360. / sides; | |
vec2 vertices = vec2(0.); | |
for (float i = 0.; i < sides; i++) { |
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
import Visualizer from './classes/visualizer' | |
import { interpolateRgb, interpolateBasis } from 'd3-interpolate' | |
import { getRandomElement } from './util/array' | |
import { sin, circle } from './util/canvas' | |
export default class Example extends Visualizer { | |
constructor () { | |
super({ volumeSmoothing: 10 }) | |
this.theme = ['#18FF2A', '#7718FF', '#06C5FE', '#FF4242', '#18FF2A'] | |
} |