Skip to content

Instantly share code, notes, and snippets.

Avatar

Konstantin Balashev strangerintheq

View GitHub Profile
View index.html
<!DOCTYPE html>
<html lang="en">
<body style="margin: 0">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.7.0/d3.min.js"></script>
<style>
.text-effect {
overflow: hidden;
position: absolute;
width: 620px;
margin-left: calc(50vw - 310px);
View .block
license: gpl-3.0
height: 600
scrolling: no
border: yes
@strangerintheq
strangerintheq / .block
Last active Jan 2, 2019
christmas tree
View .block
license: gpl-3.0
height: 600
scrolling: no
border: yes
@strangerintheq
strangerintheq / index.html
Last active Jan 1, 2019
Kali's fractal colored
View index.html
<!doctype html>
<html>
<body>
<style>
body {
margin: 0; overflow: hidden
}
canvas {
position: absolute;
width: 100%;
@strangerintheq
strangerintheq / .block
Last active Oct 30, 2018
d3 // antimeridian cuttted GeoJSON // leaflet
View .block
license: gpl-3.0
height: 500
scrolling: no
border: yes
@strangerintheq
strangerintheq / .block
Last active Jan 1, 2019
Kali's fractal b/w
View .block
license: gpl-3.0
height: 500
scrolling: no
border: yes
@strangerintheq
strangerintheq / random-string.js
Created Aug 12, 2018
random string generator
View random-string.js
module.exports = function(i) {
var rnd = '';
while (rnd.length < i) {
rnd += Math.random().toString(36).substring(2);
}
return rnd.substring(0, i);
};
@strangerintheq
strangerintheq / README.md
Last active Jan 15, 2020
Render full screen triangle in WebGL 2
View README.md

A minimalistic method for rendering a triangle in WebGL 2 that covers the screen with no buffer inputs.

Usable for post effects or something similar to https://shadertoy.com

All vertex and texture coordinate information are generated in vertex shader from the built-in gl_VertexID variable

You can’t perform that action at this time.